-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathpyproject.toml
86 lines (76 loc) · 1.79 KB
/
pyproject.toml
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
[tool.poetry]
package-mode = false
[tool.poetry.dependencies]
python = "^3.11"
celery = "^5.3.6"
django = "^5.0.4"
django-filter = "^24.2"
django-modeltranslation = "^0.18.11"
django-tinymce = "^4.0.0"
djangorestframework = "^3.15.1"
drf-standardized-errors = "^0.13.0"
gunicorn = "^21.2.0"
python-dotenv = "^1.0.1"
redis = "^5.0.3"
psycopg = "^3.1.18"
django-stubs-ext = "^5.0.0"
yarl = "^1.9.4"
pyjwt = "^2.9.0"
pillow = "^11.0.0"
[tool.poetry.group.dev.dependencies]
django-silk = "^5.1.0"
django-stubs = "^5.0.0"
djangorestframework-stubs = "^3.15.0"
mypy = "^1.10.0"
ruff = "^0.4.4"
[tool.mypy]
strict = true
ignore_missing_imports = true
disallow_untyped_decorators = false
disallow_subclassing_any = false
warn_unreachable = true
warn_no_return = true
warn_return_any = false
plugins = ["mypy_django_plugin.main", "mypy_drf_plugin.main"]
[tool.django-stubs]
django_settings_module = "constructor_telegram_bots.settings"
[tool.ruff]
target-version = "py311"
extend-exclude = ["migrations"]
[tool.ruff.lint]
select = [
"F", # pyflakes
"E", # pycodestyle errors
"W", # pycodestyle warnings
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"T20", # flake8-print
"INT", # flake8-gettext
]
ignore = [
"E501", # line too long, handled by black
"W191", # indentation contains tabs
]
[tool.ruff.lint.isort]
section-order = [
"future",
"django",
"django_stubs_ext",
"rest_framework",
"third-party",
"first-party",
"local-folder",
"requests",
"standard-library",
]
from-first = true
[tool.ruff.lint.isort.sections]
django = ["django"]
django_stubs_ext = ["django_stubs_ext"]
rest_framework = ["rest_framework"]
requests = ["requests"]
[tool.ruff.format]
quote-style = "single"