Passed
Pull Request — master (#2)
by William
01:16
created

module_renamer.cli.track()   A

Complexity

Conditions 1

Size

Total Lines 10
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 10
rs 9.4285
c 0
b 0
f 0
cc 1
nop 1
1
# -*- coding: utf-8 -*-
2
"""Console script for module_renamer."""
3
from __future__ import absolute_import
4
5
import sys
6
7
import click
0 ignored issues
show
introduced by
Unable to import 'click'
Loading history...
8
9
from .commands.track_modifications import track_modifications
10
11
CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help'])
12
13
14
@click.group(context_settings=CONTEXT_SETTINGS)
15
def main():
16
    """
17
    Console script for module_renamer.
18
    """
19
    pass
20
21
22
@main.command()
23
@click.argument('project_path', type=click.Path(exists=True))
24
@click.option('--origin_branch', default='master',
25
              help='Branch to start the evaluation')
26
@click.option('--work_branch', default=False,
27
              help='Name of the branch that has the modifications')
28
@click.option('--output_file', default='list_output.py',
29
              help='Change the name of the output file')
30
def track(**kwargs):
0 ignored issues
show
Coding Style introduced by
This function should have a docstring.

The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:

class SomeClass:
    def some_method(self):
        """Do x and return foo."""

If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.

Loading history...
31
    track_modifications(**kwargs)
32
33
34
if __name__ == "__main__":
35
    sys.exit(main())  # pragma: no cover
36