Conditions | 1 |
Total Lines | 29 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1.008 |
Changes | 5 | ||
Bugs | 0 | Features | 0 |
1 | 3 | import click |
|
17 | 3 | @click.option( |
|
18 | '--dry-run', |
||
19 | help='Prints (instead of executing) the operations to be performed.', |
||
20 | is_flag=True, |
||
21 | default=False, |
||
22 | ) |
||
23 | 3 | @click.option( |
|
24 | '--verbose', |
||
25 | help='Enables verbose output.', |
||
26 | is_flag=True, |
||
27 | default=False, |
||
28 | ) |
||
29 | 3 | @click.version_option( |
|
30 | __version__, |
||
31 | '-V', |
||
32 | '--version', |
||
33 | message=VERSION |
||
34 | ) |
||
35 | 3 | @click.group( |
|
36 | context_settings=dict( |
||
37 | help_option_names=[u'-h', u'--help'] |
||
38 | ), |
||
39 | ) |
||
40 | def main(dry_run, verbose): |
||
41 | """Ch-ch-changes""" |
||
42 | requests_cache.install_cache( |
||
43 | cache_name='github_cache', |
||
44 | backend='sqlite', |
||
45 | expire_after=180000 |
||
46 | ) |
||
57 |
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.
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.