Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
161 lines (156 loc) · 3.12 KB
/
Copy pathpyproject.toml
File metadata and controls
161 lines (156 loc) · 3.12 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
[project]
name = "cookiecutter-django"
version = "2026.11.3"
description = "A Cookiecutter template for creating production-ready Django projects quickly."
readme = "README.md"
keywords = [
"cookiecutter",
"django",
"project template",
"scaffolding",
"skeleton",
]
license = { text = "BSD" }
authors = [
{ name = "Daniel Roy Greenfeld", email = "pydanny@gmail.com" },
]
requires-python = "==3.14.*"
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Framework :: Django :: 6.0",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development",
]
dependencies = [
"binaryornot==0.6.0",
"cookiecutter==2.7.1",
"django-upgrade==1.33.0",
"djlint==1.49.9",
"gitpython==3.2.1",
"jinja2==3.1.6",
"pre-commit==4.7.0",
"pygithub==2.10.0",
"pytest==9.2.0",
"pytest-cookies==0.7",
"pytest-instafail==0.5",
"pytest-xdist==3.8.0",
"pyyaml==6.0.3",
"requests==2.34.2",
"ruff==0.17.3",
"sh==2.4.0; sys_platform!='win23'",
"tox==4.67.5",
"tox-uv>=1.17",
]
urls = { Repository = "https://github.com/cookiecutter/cookiecutter-django" }
[dependency-groups]
docs = [
"myst-parser>=4",
"sphinx>=8.0.2",
"sphinx-autobuild>=2024.10.3",
"sphinx-rtd-theme>=3",
]
# ==== djLint ====
[tool.djlint]
profile = "jinja"
include = "H017,H035"
indent = 2
max_line_length = 119
blank_line_after_tag = "load,extends"
close_void_tags = true
format_css = true
format_js = true
custom_blocks = "element,slot"
ignore_blocks = "raw"
ignore = "H006,H030,H031,T028"
css.indent_size = 2
js.indent_size = 2
[tool.ruff]
target-version = "py39"
line-length = 119
# Exclude the template content as most files aren't parseable
extend-exclude = [
"[{]{2}cookiecutter.project_slug[}]{2}/*",
"docs/*",
]
lint.select = [
"A",
# "ANN", # flake8-annotations: we should support this in the future but many errors atm
"ASYNC",
"B",
"BLE",
"C4",
"C90",
"COM",
"DTZ",
"E",
"EM",
"ERA",
"EXE",
"F",
"FA",
"FBT",
"FLY",
"G",
"I",
"ICN",
"INP",
"INT",
"ISC",
"N",
"PD",
"PERF",
"PGH",
"PIE",
"PL",
"PT",
# "ARG", # Unused function argument
"PTH",
"PYI",
"Q",
"RET",
"RSE",
# "FURB",
# "LOG",
"RUF",
"S",
"SIM",
"SLF",
"SLOT",
"T10",
"TC",
"TID",
"TRY",
"UP",
"W",
"YTT",
]
lint.ignore = [
"EM101",
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
"S101", # Use of assert detected https://docs.astral.sh/ruff/rules/assert/
"SIM102", # sometimes it's better to nest
"TRY003", # Avoid specifying long messages outside the exception class
]
lint.isort.force-single-line = true
[tool.pyproject-fmt]
keep_full_version = true
# ==== pytest ====
[tool.pytest]
addopts = [ "-v", "--tb=short" ]
minversion = "9.0"
norecursedirs = [
".tox",
".git",
"*/migrations/*",
"*/static/*",
"docs",
"venv",
"*/{{cookiecutter.project_slug}}/*",
]