Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
179 lines (161 loc) · 4.39 KB
/
Copy pathpyproject.toml
File metadata and controls
179 lines (161 loc) · 4.39 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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
[project]
name = "django-unfold"
version = "0.110.0"
description = "Modern Django Admin"
authors = []
requires-python = ">=3.12,<4.0"
readme = "README.md"
license = "MIT"
keywords = [
"django",
"admin",
"tailwind",
"theme",
]
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"Framework :: Django :: 5.2",
"Framework :: Django :: 6.0",
"Framework :: Django :: 6.1",
"Operating System :: OS Independent",
"Environment :: Web Environment",
"Intended Audience :: Developers",
]
dependencies = ["django>=5.2"]
[project.urls]
Homepage = "https://unfoldadmin.com"
Documentation = "https://unfoldadmin.com/docs/"
Repository = "https://github.com/unfoldadmin/django-unfold"
Issues = "https://github.com/unfoldadmin/django-unfold/issues"
Changelog = "https://github.com/unfoldadmin/django-unfold/blob/main/CHANGELOG.md"
[dependency-groups]
dev = [
"django-constance~=4.3.5",
"django-crispy-forms~=2.6.0",
"django-guardian~=3.3.3",
"django-hijack~=3.7.8",
"django-import-export~=4.4.1",
"django-location-field~=2.7.3",
"django-money~=3.6.1",
"django-reversion~=6.3.0",
"django-reversion-compare~=0.21.1",
"django-simple-history~=3.13.0",
"django-stubs~=6.1.1",
"django-waffle~=5.0.0",
"pillow~=12.3.0",
"pytest~=9.1.1",
"pytest-cov~=7.1.0",
"pytest-django~=4.12.0",
"pytest-factoryboy~=2.8.1",
"pytest-mock~=3.15.1",
"python-semantic-release~=10.6.1",
"tox~=4.58.0",
"six~=1.17.0",
"psycopg[binary]~=3.3.6",
"pre-commit~=4.6.2",
"jsonschema~=4.26.0",
]
django52 = ["django>=5.2,<6"]
django60 = ["django>=6.0,<6.1"]
django61 = ["django>=6.1,<6.2"]
djangomain = ["django @ git+https://github.com/django/django@main",]
[tool.uv]
conflicts = [
[
{ group = "django52" },
{ group = "django60" },
{ group = "django61" },
{ group = "djangomain" },
],
]
[tool.hatch.build.targets.sdist]
include = ["src/unfold"]
[tool.hatch.build.targets.wheel]
include = ["src/unfold"]
[tool.hatch.build.targets.wheel.sources]
"src/unfold" = "unfold"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.ruff]
fix = true
line-length = 88
target-version = "py312"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
"UP", # pyupgrade
"PL", # pylint
"T20", # disallow pprint and print
]
ignore = [
"E501", # line too long, handled by black
"B905", # zip() without strict=True
"C901", # too complex
"PLC0415", # `import` should be at the top-level of a file
"PLR0913", # Too many arguments in function definition
"PLR0917", # Too many positional arguments
]
[tool.semantic_release]
tag_format = "{version}"
major_on_zero = false
allow_zero_version = true
version_toml = ["pyproject.toml:project.version"]
[tool.semantic_release.changelog]
mode = "init"
exclude_commit_patterns = [
"chore: version bump",
'''chore(?:\(deps\))?: .+''',
'''chore(?:\(deps-dev\))?: .+'''
]
[tool.semantic_release.publish]
upload_to_vcs_release = false
[tool.pytest.ini_options]
addopts = [
"--strict-config",
"--strict-markers",
"--cov=unfold",
"--reuse-db",
"--no-migrations",
"--ds=example.settings",
]
pythonpath = "tests/server"
django_find_project = false
[tool.coverage.report]
show_missing = true
skip_covered = true
fail_under = 95.5
sort = "-miss"
[tool.coverage.paths]
source = ["src/unfold"]
[tool.ty.src]
include = ["src/unfold"] # TODO: include tests
[tool.ty.rules]
possibly-missing-attribute = "ignore" # TODO: remove once all errors are fixed
too-many-positional-arguments = "ignore"
[tool.tox]
legacy_tox_ini = """
[tox]
isolated_build = true
envlist =
python{312,313,314,315}-django{52,60,61,main}
[testenv]
allowlist_externals = uv
skip_install = true
set_env =
PYTHONDEVMODE = 1
commands =
django52: uv run --group django52 -- pytest .
django60: uv run --group django60 -- pytest .
django61: uv run --group django61 -- pytest .
djangomain: uv run --group djangomain --upgrade-package django -- pytest .
"""