Completed
Push — develop ( 50092f...fea62d )
by Jace
39s queued 35s
created

main()   A

Complexity

Conditions 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1.2963

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 0
loc 4
ccs 1
cts 3
cp 0.3333
crap 1.2963
rs 10
1 1
import logging
2
3 1
import click
0 ignored issues
show
Configuration introduced by
The import click could not be resolved.

This can be caused by one of the following:

1. Missing Dependencies

This error could indicate a configuration issue of Pylint. Make sure that your libraries are available by adding the necessary commands.

# .scrutinizer.yml
before_commands:
    - sudo pip install abc # Python2
    - sudo pip3 install abc # Python3
Tip: We are currently not using virtualenv to run pylint, when installing your modules make sure to use the command for the correct version.

2. Missing __init__.py files

This error could also result from missing __init__.py files in your module folders. Make sure that you place one file in each sub-folder.

Loading history...
4
5
6 1
log = logging.getLogger(__name__)
7
8
9 1
@click.group()
10
def main():
11
    logging.basicConfig(level=logging.INFO)
12
    logging.getLogger('yorm').setLevel(logging.WARNING)
13
14
15 1
@main.command()
16
def new():
17
    # TODO: this logic is only temporary to test the Config model
18
    from .models import Config
19
    Config.generate_example()
20
21
22 1
if __name__ == '__main__':
23
    main()
24