forked from PCMDI/pcmdi_metrics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
40 lines (37 loc) · 978 Bytes
/
setup.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
[flake8]
# https://pep8.readthedocs.io/en/latest/intro.html#error-codes
# flake8 dooes not support pyproject.toml yet: https://github.com/PyCQA/flake8/issues/234
ignore =
# whitespace before ‘:’
E203
# line too long (82 > 79 characters)
E501
# line break before operator
W503
# function is too complex
C901
# too many leading '#' for block comment
E266
# inline comment should start with '# '
E262
# Max width of Github code review is 119 characters
max-line-length = 119
max-complexity = 10
exclude =
.tox
.git
*/migrations/*
*/static/CACHE/*
docs
node_modules
.idea
.mypy_cache
.pytest_cache
*__init__.py
venv
*json
*md
[tool:pytest]
junit_family = xunit2
addopts = --cov=pcmdi_metrics --cov-report term --cov-report html:tests_coverage_reports/htmlcov --cov-report xml:tests_coverage_reports/coverage.xml -s --ignore tests/deprecated
python_files = tests.py test_*.py