-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathpyproject.toml
More file actions
98 lines (89 loc) · 2.16 KB
/
Copy pathpyproject.toml
File metadata and controls
98 lines (89 loc) · 2.16 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
[tool.ruff]
# Exclude a variety of commonly ignored directories.
extend-exclude = [
".direnv",
".git",
".ruff_cache",
"node_modules",
"migrations",
]
line-length = 120
indent-width = 4
target-version = "py314"
[tool.ruff.lint]
# Ruff's (0.16+) default rules, plus the full pycodestyle (E) set.
extend-select = ["E"]
ignore = [
"RUF012", # mutable-class-default: fights Django idioms (Meta.fields, form widgets, etc.)
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.mypy]
python_version = "3.14"
plugins = ["mypy_django_plugin.main", "mypy_drf_plugin.main"]
# Third-party libraries without type stubs - explicitly list each to suppress import-untyped
[[tool.mypy.overrides]]
module = [
"allauth.*",
"celery.*",
"celery_progress.*",
"django_celery_beat.*",
"environ.*",
"kombu.*",
"mailchimp3.*",
]
ignore_missing_imports = true
# Django admin files have known issues with decorators and type annotations
# Disable specific error codes that are problematic
[[tool.mypy.overrides]]
module = [
"apps.*.admin",
]
disable_error_code = ["attr-defined", "assignment"]
[tool.django-stubs]
django_settings_module = "project.settings"
[tool.setuptools]
py-modules = []
[project]
name = "project"
version = "0.1.0"
description = "The original SaaS Boilerplate for Django, trusted by thousands."
readme = "README.md"
requires-python = ">=3.14"
dependencies = [
"Django>=6.0",
"celery",
"celery-progress",
"celery[redis]",
"django-allauth[socialaccount]>=65.13.0",
"django-anymail[mailgun]", # email services
"django-celery-beat",
"django-environ",
"django-htmx",
"django-vite>=3.1.0",
"django-waffle",
"djangorestframework",
"drf-spectacular",
"psycopg",
"redis",
]
[dependency-groups]
dev = [
"django-browser-reload",
"pre-commit",
"ruff>=0.16",
"pegasus-cli>=0.15",
"psycopg[binary]",
"mypy>=1.18.2",
"django-stubs>=5.0.0",
"djangorestframework-stubs>=3.15.0",
"types-python-dateutil>=2.9.0.20251108",
"types-requests>=2.32.4",
]
prod = [
"gunicorn",
"psycopg[c]",
]