-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
92 lines (85 loc) · 2.03 KB
/
pyproject.toml
File metadata and controls
92 lines (85 loc) · 2.03 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
91
92
[project]
name = "tccms-backend"
version = "0.1.0"
description = "Backend for TC CMS"
authors = [
{name = "Togglecorp CMS", email = "[email protected]"},
]
license = { text = "Apache-2.0" }
readme = "README.md"
requires-python = "~=3.13.2"
dependencies = [
"Django~=5.1.6",
"django-cors-headers",
"django-cte",
"django-environ",
"django-premailer",
"django-storages[s3]",
"djangoql", # Admin panel query search
"djangorestframework",
"factory-boy~=3.2.1",
"gunicorn~=20.1.0",
"psycopg2-binary",
"sentry-sdk",
"strawberry-graphql-django~=0.57.0",
"django-choices-field", # Required by strawberry-graphql-django
"django-health-check",
"pillow", # Required by django ImageField
"pydantic==2.10.6",
"redis>=6.0.0",
]
[dependency-groups]
dev = [
"django-debug-toolbar",
"django-stubs",
"ipython",
"colorlog",
]
test = [
"pytest-django",
"pytest-icdiff",
"pytest-ordering",
"pytest-profiling",
]
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "main.settings"
log_cli = true
[tool.ruff]
line-length = 125
extend-exclude = [
".git",
".pytest_cache",
".mypy_cache",
".ruff_cache",
".venv",
"venv",
"**/migrations/*",
"__pycache__",
]
[tool.ruff.lint]
flake8-builtins.builtins-strict-checking = false
ignore = [
"C901",
"E701",
"E203",
"DJ001",
"G201", # FIXME: Check if we can enable this and keep sending logs to sentry
]
extend-select = ["I", "E", "F", "B", "A", "W", "DJ", "AIR", "COM", "INT", "ISC", "ICN", "LOG", "G", "T20", "TID", "PT", "Q", "RET", "SIM", "TC", "PTH", "UP"]
# TODO: Use this instead `select = ["ALL"]` and add rules to ignore
# ruff check --statistics ./
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402"]
"/**/tests/*_mock_data.py" = ["E501"]
"**/snap_test_*.py" = ["E501"]
[tool.pyright]
exclude = [
"**/__pycache__",
"**/snap_test_*.py",
".venv/",
"**/migrations/*.py",
]
reportMissingImports = true
reportMissingTypeStubs = false
venvPath = "."
venv = ".venv"