-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
77 lines (69 loc) · 1.5 KB
/
pyproject.toml
File metadata and controls
77 lines (69 loc) · 1.5 KB
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
[tool.mypy]
python_version = "3.13"
plugins = ["mypy_django_plugin.main"]
strict_optional = true
exclude = [".*/migrations/.*"]
warn_redundant_casts = true
warn_unused_ignores = true
# Gradual adoption: do not require all defs to be typed yet
disallow_untyped_defs = false
[tool.django-stubs]
django_settings_module = "django_project.settings"
[[tool.mypy.overrides]]
module = [
"celery",
"celery.*",
"allauth.*",
"rest_framework.*",
"crispy_forms.*",
"reportlab.*",
"psycopg2",
"psycopg2.*",
"debug_toolbar",
"debug_toolbar.*",
"django_extensions",
"django_extensions.*",
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "django_project.celery"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = [
"children.tests.*",
"accounts.tests.*",
"feedings.tests.*",
"diapers.tests.*",
"naps.tests.*",
"analytics.tests.*",
"notifications.tests.*",
"pages.tests.*",
]
disallow_untyped_defs = false
disallow_untyped_calls = false
[[tool.mypy.overrides]]
module = ["accounts.forms", "children.forms"]
ignore_missing_imports = true
[tool.bandit]
exclude_dirs = ["tests", "*/tests", "*/migrations"]
skips = ["B101"]
severity = "medium"
confidence = "medium"
[tool.coverage.run]
source = ["."]
omit = [
"*/migrations/*",
"*/tests/*",
"*/__pycache__/*",
"manage.py",
"django_project/asgi.py",
"django_project/wsgi.py",
".venv/*",
]
[tool.coverage.report]
show_missing = false
skip_covered = true
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
]