forked from openfisca/openfisca-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
55 lines (46 loc) · 2.03 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
; 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).
; E128/133: We prefer hang-closing visual indents.
; E251: We prefer `function(x = 1)` over `function(x=1)`.
; E501: We do not enforce a maximum line length.
; 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
hang-closing = true
ignore = E128,E251,F403,F405,E501,RST301,W503,W504
in-place = true
include-in-doctest = openfisca_core/commons openfisca_core/types
rst-directives = attribute, deprecated, seealso, versionadded, versionchanged
rst-roles = any, attr, class, exc, func, meth, obj
strictness = short
[pylint.message_control]
disable = all
enable = C0115,C0116,R0401
score = no
[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 = openfisca_core/commons openfisca_core/types tests
[mypy]
ignore_missing_imports = True
install_types = True
non_interactive = True
[mypy-openfisca_core.commons.tests.*]
ignore_errors = True
[mypy-openfisca_core.scripts.*]
ignore_errors = True