-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.cfg
80 lines (71 loc) · 1.61 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
[bumpversion]
current_version = 0.1.0
commit = True
tag = True
[bumpversion:file:setup.py]
search = version="{current_version}"
replace = version="{new_version}"
[bumpversion:file:esgf_metrics/__init__.py]
search = __version__ = "{current_version}"
replace = __version__ = "{new_version}"
[bumpversion:file:conda-recipe/meta.yaml]
search = version = "{current_version}"
replace = version = "{new_version}"
[flake8]
# https://pep8.readthedocs.io/en/latest/intro.html#error-codes
ignore =
# whitespace before ‘:’
E203
# line too long (82 > 79 characters)
E501
# line break before operator
W503
# 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
[isort]
multi_line_output=3
include_trailing_comma=True
force_grid_wrap=0
use_parentheses=True
line_length=88
[pycodestyle]
max-line-length = 119
exclude =
.tox
.git
*/migrations/*
*/static/CACHE/*
docs
node_modules
.idea
.mypy_cache
.pytest_cache
*__init__.py
venv
[mypy]
python_version = 3.9
check_untyped_defs = True
ignore_missing_imports = True
warn_unused_ignores = True
warn_redundant_casts = True
warn_unused_configs = True
[aliases]
# Define setup.py command aliases here
test = pytest
[tool:pytest]
junit_family=xunit2
addopts = --cov=esgf_metrics --cov-report term --cov-report html:tests_coverage_reports/htmlcov --cov-report xml:tests_coverage_reports/coverage.xml -s
python_files = tests.py test_*.py