-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
90 lines (79 loc) · 1.95 KB
/
Copy pathpyproject.toml
File metadata and controls
90 lines (79 loc) · 1.95 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
78
79
80
81
82
83
84
85
86
87
88
89
90
[project]
name = "cave-incident-db"
authors = [
{ name = "Andrew Northall", email = "andrew@northall.me.uk" }
]
version = "1.0.0"
requires-python = ">=3.14"
dependencies = [
"boto3",
"django",
"django-cors-headers",
"django-ninja",
"django-storages[s3]",
"gunicorn",
"inotify",
"pydantic",
"pydantic-ai",
"orjson",
"Pillow",
"psycopg[binary]",
"sentry-sdk",
"tzdata",
"whitenoise",
"structlog>=25.5.0",
"django-treebeard>=4.8.0",
"sqlalchemy>=2.0.45",
"django-ipware>=7.0.1",
"email-validator>=2.0.0",
"django-valkey>=0.4.0",
"logfire[django,psycopg,redis,system-metrics,wsgi]",
"django-unfold>=0.75.0",
"django-environ>=0.13.0",
]
[dependency-groups]
dev = [
"pre-commit",
"ruff",
"rust-just",
"mypy[dmypy]",
"django-stubs[compatible-mypy]",
"types-pytz",
"boto3-stubs",
"pytest>=9.0.2",
"pytest-django>=4.11.1",
"detect-secrets>=1.5.0",
]
[tool.mypy]
plugins = ["mypy_django_plugin.main"]
mypy_path = ["./stubs"]
exclude = ["data/"]
strict = true
[tool.django-stubs]
django_settings_module = "conf.settings"
[[tool.mypy.overrides]]
module = "debug_toolbar"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "ipware"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "environ"
ignore_missing_imports = true
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "conf.settings"
pythonpath = ["."]
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = ["B", "C4", "D", "DJ", "E", "EXE", "F", "I", "ICN", "N", "RET", "S", "SIM", "UP", "W"]
ignore = ["D417", "D100", "D101", "D102", "D103", "D104", "D105", "D106", "D107", "S101", "SIM102"]
extend-select = ["E501"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"**/migrations/*.py" = ["E501"]
"**/tests/*.py" = ["S106"]
"conftest.py" = ["S106"]
"stubs/treebeard/**/*.pyi" = ["N801", "DJ012", "N818", "N803"]
[tool.ruff.lint.pydocstyle]
convention = "google"