|
| 1 | +[tool:pytest] |
| 2 | +norecursedirs = |
| 3 | + .git |
| 4 | + venv |
| 5 | +python_files = |
| 6 | + test_*.py |
| 7 | + *_test.py |
| 8 | + tests.py |
| 9 | +addopts = |
| 10 | + -rf |
| 11 | + --isort |
| 12 | + --cov |
| 13 | + |
| 14 | +[flake8] |
| 15 | +max-line-length = 120 |
| 16 | +exclude = .tox,.git |
| 17 | + |
| 18 | +[pycodestyle] |
| 19 | +max-line-length = 120 |
| 20 | +exclude = .tox,.git |
| 21 | + |
| 22 | +[pylint] |
| 23 | +max-line-length = 120 |
| 24 | +exclude = .tox,.git |
| 25 | + |
| 26 | +[coverage:run] |
| 27 | +branch = True |
| 28 | +source = |
| 29 | + app |
| 30 | +omit = |
| 31 | + *.eggs* |
| 32 | + *tests* |
| 33 | + */__init__.py |
| 34 | + |
| 35 | +[coverage:report] |
| 36 | +# Regexes for lines to exclude from consideration |
| 37 | +exclude_lines = |
| 38 | + # Have to re-enable the standard pragma |
| 39 | + pragma: no cover |
| 40 | + |
| 41 | + # Don't complain about missing debug-only code: |
| 42 | + def __repr__ |
| 43 | + if self\.debug |
| 44 | + |
| 45 | + # Don't complain if tests don't hit defensive assertion code: |
| 46 | + raise AssertionError |
| 47 | + raise NotImplementedError |
| 48 | + |
| 49 | + # Don't complain if non-runnable code isn't run: |
| 50 | + if 0: |
| 51 | + if __name__ == .__main__.: |
| 52 | + |
| 53 | +ignore_errors = True |
| 54 | + |
| 55 | +[coverage:html] |
| 56 | +directory = coverage_html_report |
| 57 | + |
| 58 | +[isort] |
| 59 | +line_length = 120 |
| 60 | +multi_line_output = 5 |
| 61 | +include_trailing_comma = True |
| 62 | +known_future_library = future |
| 63 | +known_third_party = boto3,botocore,fire,pytest,requests,urllib3,six,yaml |
| 64 | +known_first_party = cloudendure_api,api,cloudendure,config,events,exceptions,models,templates,utils |
| 65 | +default_section = THIRDPARTY |
| 66 | +indent = ' ' |
| 67 | +sections = FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER |
| 68 | +skip=cloudendure/cloudendure_api |
| 69 | + |
| 70 | +[yapf] |
| 71 | +based_on_style = pep8 |
| 72 | +column_limit = 120 |
| 73 | +indent_width = 4 |
| 74 | +spaces_before_comment = 2 |
| 75 | +ALLOW_SPLIT_BEFORE_DICT_VALUE = false |
| 76 | +DEDENT_CLOSING_BRACKETS = true |
| 77 | +EACH_DICT_ENTRY_ON_SEPARATE_LINE = true |
| 78 | +COALESCE_BRACKETS = true |
| 79 | +USE_TABS = false |
| 80 | +ALLOW_MULTILINE_LAMBDAS = true |
| 81 | +BLANK_LINE_BEFORE_NESTED_CLASS_OR_DEF = true |
| 82 | +INDENT_DICTIONARY_VALUE = true |
| 83 | +SPLIT_BEFORE_EXPRESSION_AFTER_OPENING_PAREN = true |
| 84 | +DISABLE_ENDING_COMMA_HEURISTIC = true |
0 commit comments