-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
110 lines (103 loc) · 2.45 KB
/
pyproject.toml
File metadata and controls
110 lines (103 loc) · 2.45 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
[project]
name = "timur-backend"
version = "0.1.4" # managed by release.sh
description = ""
authors = [{ name = "tc-dev", email = "dev@togglecorp.com" }]
requires-python = "~=3.13.2"
readme = "README.md"
license = "GNU Affero General Public License v3.0"
dependencies = [
"requests",
"django-environ",
"Django>=4.2,<4.3",
"drf-writable-nested",
"djangorestframework",
"psycopg2-binary>=2.9,<3",
"django-cors-headers",
"django-premailer",
"django-storages",
"django-admin-autocomplete-filter",
"strawberry-graphql-django==0.74.0",
"sentry-sdk",
"ipython",
"factory-boy",
"user-agents",
"django-ses>=3,<4",
"celery[redis]>=5.3.4,<6",
"django-redis>=5.3.0,<6",
"django-reversion",
"uwsgi",
"aws-sns-message-validator",
"google-api-python-client",
"django-health-check",
"Pillow",
"psutil",
"django-admin-rangefilter",
"django-allauth[socialaccount]",
"djangoql", # Admin panel query search
"python-ulid",
"slack_sdk",
"pyyaml",
]
[dependency-groups]
dev = [
"dacite",
"pytest",
"pytest-profiling",
"pytest-ordering",
"pytest-django",
"django-stubs==4.2.6",
"djangorestframework-stubs",
"google-api-python-client-stubs",
"celery-types",
"colorlog",
]
[tool.uv]
package = false
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "main.settings"
log_cli = true
[tool.pyright]
exclude = [
"**/__pycache__",
"**/snap_test_*.py",
".venv/",
"**/migrations/*.py",
]
reportMissingImports = true
reportMissingTypeStubs = false
venvPath = "."
venv = ".venv"
strictDictionaryInference = true
strictListInteference = true
strictSetInference = true
reportImplicitOverride = true
[tool.ruff]
line-length = 125
extend-exclude = [
".git",
".pytest_cache",
".venv",
"venv",
"**/migrations/*",
"__pycache__",
]
[tool.ruff.lint]
flake8-builtins.builtins-strict-checking = false
ignore = [
"C901",
"E701",
"E203",
"DJ001",
"G201",
"SIM108",
]
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"]
"**/**/mutations.py" = ["B006"]
"utils/strawberry/*.py" = ["UP"]
"/**/tests/*_mock_data.py" = ["E501"]
"**/snap_test_*.py" = ["E501"]