-
Notifications
You must be signed in to change notification settings - Fork 76
/
Copy pathsetup.cfg
100 lines (93 loc) · 3.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# 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]
convention = google
docstring_style = google
extend-ignore = D
ignore =
B019
E203
E501
F405
E701
E704
RST210
RST212
RST213
RST301
RST306
W503
in-place = true
include-in-doctest =
openfisca_core/commons
openfisca_core/data_storage
openfisca_core/entities
openfisca_core/experimental
openfisca_core/holders
openfisca_core/indexed_enums
openfisca_core/periods
openfisca_core/projectors
max-line-length = 88
per-file-ignores =
*/types.py:D101,D102,E301,E704,W504
*/test_*.py:D101,D102,D103
*/__init__.py:F401
*/__init__.pyi:E302,E704
rst-directives = attribute, deprecated, seealso, versionadded, versionchanged
rst-roles = any, attr, class, exc, func, meth, mod, obj
strictness = short
[pylint.MASTER]
load-plugins = pylint_per_file_ignores
[pylint.message_control]
disable = all
enable = C0115, C0116, R0401
per-file-ignores =
types.py:C0115,C0116
/tests/:C0115,C0116
score = no
[isort]
case_sensitive = true
combine_as_imports = true
force_alphabetical_sort_within_sections = false
group_by_package = true
honor_noqa = true
include_trailing_comma = true
known_first_party = openfisca_core
known_openfisca = openfisca_country_template, openfisca_extension_template
known_typing = *collections.abc*, *typing*, *typing_extensions*
known_types = *types*
multi_line_output = 3
profile = black
py_version = 39
sections = FUTURE, TYPING, TYPES, STDLIB, THIRDPARTY, OPENFISCA, FIRSTPARTY, LOCALFOLDER
[tool:pytest]
addopts = --disable-pytest-warnings --doctest-modules --showlocals
doctest_optionflags = ELLIPSIS IGNORE_EXCEPTION_DETAIL NUMBER NORMALIZE_WHITESPACE
python_files = **/*.py
testpaths = tests
[mypy]
check_untyped_defs = false
disallow_any_decorated = false
disallow_any_explicit = false
disallow_any_expr = false
disallow_any_unimported = false
follow_imports = skip
ignore_missing_imports = true
implicit_reexport = false
install_types = true
mypy_path = stubs
non_interactive = true
plugins = numpy.typing.mypy_plugin
pretty = true
python_version = 3.9
strict = false
warn_no_return = true
warn_unreachable = true
[mypy-openfisca_core.*.tests.*]
ignore_errors = True