-
Notifications
You must be signed in to change notification settings - Fork 75
/
setup.cfg
72 lines (60 loc) · 2.65 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
# C011X: We (progressively) document the code base.
# D10X: We (progressively) check docstrings (see https://www.pydocstyle.org/en/2.1.1/error_codes.html#grouping).
# DARXXX: We (progressively) check docstrings (see https://github.com/terrencepreilly/darglint#error-codes).
# E203: We ignore a false positive in whitespace before ":" (see https://github.com/PyCQA/pycodestyle/issues/373).
# F403/405: We ignore * imports.
# R0401: We avoid cyclic imports —required for unit/doc tests.
# RST301: We use Google Python Style (see https://pypi.org/project/flake8-rst-docstrings/).
# W503/504: We break lines before binary operators (Knuth's style).
[flake8]
extend-ignore = D
ignore = E203, E501, F405, RST301, W503
in-place = true
include-in-doctest = openfisca_core/commons openfisca_core/entities openfisca_core/holders openfisca_core/periods openfisca_core/projectors openfisca_core/types
max-line-length = 88
per-file-ignores = */typing.py:D101,D102,E704, */__init__.py:F401
rst-directives = attribute, deprecated, seealso, versionadded, versionchanged
rst-roles = any, attr, class, exc, func, meth, mod, obj
strictness = short
[pylint.message_control]
disable = all
enable = C0115,C0116,R0401
score = no
[isort]
case_sensitive = true
force_alphabetical_sort_within_sections = false
group_by_package = true
include_trailing_comma = true
known_first_party = openfisca_core
known_openfisca = openfisca_country_template, openfisca_extension_template
known_typing = *abc*, *mypy*, *types*, *typing*
profile = black
py_version = 39
sections = FUTURE, TYPING, STDLIB, THIRDPARTY, OPENFISCA, FIRSTPARTY, LOCALFOLDER
[coverage:paths]
source = . */site-packages
[coverage:run]
branch = true
source = openfisca_core, openfisca_web_api
[coverage:report]
fail_under = 75
show_missing = true
skip_covered = true
skip_empty = true
[tool:pytest]
addopts = --doctest-modules --disable-pytest-warnings --showlocals
doctest_optionflags = ELLIPSIS IGNORE_EXCEPTION_DETAIL NUMBER NORMALIZE_WHITESPACE
python_files = **/*.py
testpaths = tests
[mypy]
ignore_missing_imports = True
install_types = True
non_interactive = True
[mypy-openfisca_core.commons.tests.*]
ignore_errors = True
[mypy-openfisca_core.holders.tests.*]
ignore_errors = True
[mypy-openfisca_core.periods.tests.*]
ignore_errors = True
[mypy-openfisca_core.scripts.*]
ignore_errors = True