This repository has been archived by the owner on Jan 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.cfg
67 lines (58 loc) · 1.52 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
[flake8]
# Flake8 configuration:
# https://flake8.pycqa.org/en/latest/user/configuration.html
max-line-length = 79
max-doc-length = 72
indent-size = 4
statistics = true
show-source = true
exclude = **/migrations/**
per-file-ignores =
server/settings/*.py: F401,F403,F405
# Pyflakes configuration:
# https://github.com/PyCQA/pyflakes
doctests = true
# McCabe configuration:
# https://github.com/PyCQA/mccabe
max-complexity = 5
[coverage:run]
# coverage.py configuration:
# https://coverage.readthedocs.io/en/latest/
# These files can't be tested, so we exclude them from coverage.
# We also exclude the manage.py file, since it's not a part of the app.
omit =
apps/*/tests.py
server/asgi.py
server/wsgi.py
server/settings/__init__.py
server/settings/production.py
manage.py
[coverage:report]
# coverage.py configuration:
# https://coverage.readthedocs.io/en/latest/
exclude_lines =
if TYPE_CHECKING:
pragma: no cover
[mypy]
strict = true
pretty = true
disallow_any_unimported = true
disallow_any_decorated = true
disallow_any_generics = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
warn_unreachable = true
show_error_context = true
show_column_numbers = true
show_error_codes = true
plugins =
mypy_django_plugin.main,
[mypy.plugins.django-stubs]
django_settings_module = "server.settings"