-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.cfg
81 lines (72 loc) · 2.25 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
; https://github.com/c4urself/bump2version#configuration-file
[bumpversion]
current_version = 0.2.0
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(?:\.post(?P<post>\d+))?
serialize =
{major}.{minor}.{patch}.post{post}
{major}.{minor}.{patch}
commit = True
tag = True
[bumpversion:file:.cruft.json]
[bumpversion:file:README.md]
[bumpversion:file:setup.py]
[bumpversion:file:src/accessibility_check_backend/version.py]
; http://flake8.pycqa.org/en/latest/user/configuration.html#project-configuration
; https://black.readthedocs.io/en/stable/the_black_code_style.html#line-length
[flake8]
max_line_length = 120
max_complexity = 15
doctests = True
ignore = S101,E501,E203,W503,S410
; https://mypy.readthedocs.io/en/latest/config_file.html
[mypy]
plugins = pydantic.mypy
ignore_missing_imports = True
disallow_any_unimported = False
disallow_any_expr = False
disallow_any_decorated = False
disallow_any_explicit = False
disallow_any_generics = True
disallow_subclassing_any = False
disallow_untyped_calls = True
disallow_untyped_defs = True
disallow_incomplete_defs = True
check_untyped_defs = True
disallow_untyped_decorators = False
no_implicit_optional = True
strict_optional = True
warn_redundant_casts = True
warn_unused_ignores = True
warn_no_return = True
warn_return_any = True
warn_unreachable = True
allow_untyped_globals = False
allow_redefinition = False
implicit_reexport = True
strict_equality = True
junit_xml = reports/mypy/TESTS-mypy.xml
warn_unused_configs = True
; https://github.com/pyinvoke/invoke/issues/357
[mypy-tasks.*]
ignore_errors = True
; https://pydantic-docs.helpmanual.io/mypy_plugin/#configuring-the-plugin
[pydantic-mypy]
init_forbid_extra = True
init_typed = True
warn_required_dynamic_aliases = True
warn_untyped_fields = True
; http://www.pydocstyle.org/en/latest/usage.html#configuration-files
[pydocstyle]
convention = numpy
; https://pycqa.github.io/isort/docs/configuration/profiles/
[isort]
profile = black
known_first_party = tests
line_length = 100
; https://docs.pytest.org/en/latest/customize.html#adding-default-options
[tool:pytest]
addopts = -Werror --exitfirst -vv --verbose --junitxml=reports/pytest/TESTS-pytest.xml
junit_family = xunit2
; https://coverage.readthedocs.io/en/latest/config.html
[coverage:report]
fail_under = 50