-
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathpyproject.toml
More file actions
162 lines (148 loc) · 4.26 KB
/
Copy pathpyproject.toml
File metadata and controls
162 lines (148 loc) · 4.26 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
[build-system]
requires = ['uv_build>=0.11.0,<0.12']
build-backend = 'uv_build'
[project]
name = 'django-admin-generator'
version = '3.0.0'
description = 'Django Admin Generator is a management command to automatically generate a Django `admin.py` file for given apps/models.'
readme = 'README.md'
license = 'BSD-3-Clause'
license-files = ['LICENSE']
requires-python = '>=3.10'
authors = [{ name = 'Rick van Hattem', email = 'Wolph@Wol.ph' }]
keywords = ['django', 'admin', 'generator', 'scaffold']
classifiers = [
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 4.2',
'Framework :: Django :: 5.0',
'Framework :: Django :: 5.1',
'Framework :: Django :: 5.2',
'Intended Audience :: Developers',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Topic :: Software Development :: Libraries :: Python Modules',
'Typing :: Typed',
]
dependencies = [
'django-utils2>=2.12.1',
'python-utils>=3.5.2',
]
[project.urls]
Homepage = 'https://github.com/WoLpH/django-admin-generator/'
Documentation = 'https://django-admin-generator.readthedocs.io/'
Source = 'https://github.com/WoLpH/django-admin-generator/'
'Bug Reports' = 'https://github.com/WoLpH/django-admin-generator/issues'
[project.optional-dependencies]
docs = [
'sphinx>=7',
'django>=4.2',
]
tests = [
'pytest>=8',
'pytest-cov>=5',
'pytest-django>=4.8',
'coverage>=7',
'django>=4.2',
]
dev = [
'django-admin-generator[tests]',
'ruff>=0.15.0',
'mypy>=1.10',
'django-stubs[compatible-mypy]>=5.0',
'pyright>=1.1',
'pyrefly>=0.1',
]
tox = [
'tox>=4.0',
'tox-uv>=1.0',
'tox-gh-actions>=3.0',
]
demo = [
'django>=4.2',
]
[tool.uv.build-backend]
module-root = ''
module-name = 'django_admin_generator'
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = 'test_project.settings'
pythonpath = ['.']
python_files = ['test_*.py', '*_tests.py']
testpaths = ['test_project']
addopts = [
'--cov=django_admin_generator',
'--cov-report=term-missing',
'--cov-report=html',
'--no-cov-on-fail',
'--basetemp=tmp',
]
[tool.coverage.run]
source = ['django_admin_generator']
branch = true
parallel = true
omit = ['*/__about__.py']
[tool.coverage.report]
fail_under = 100
show_missing = true
exclude_lines = [
'pragma: no cover',
'def __repr__',
'if self.debug:',
'if settings.DEBUG',
'if (?:typing\.)?TYPE_CHECKING:',
'raise AssertionError',
'raise NotImplementedError',
'if 0:',
'if __name__ == .__main__.:',
'@overload',
]
[tool.coverage.paths]
source = ['django_admin_generator']
[tool.mypy]
python_version = '3.10'
strict = true
packages = ['django_admin_generator']
plugins = ['mypy_django_plugin.main']
local_partial_types = true
enable_error_code = [
'ignore-without-code',
'redundant-expr',
'truthy-bool',
]
warn_return_any = false
[[tool.mypy.overrides]]
module = ['django_utils.*', 'django_json_widget.*', 'reversion.*']
ignore_missing_imports = true
# test_project is the Django test harness, not shipped code. The django-stubs
# plugin imports its settings, so keep it importable but do not strict-check it.
[[tool.mypy.overrides]]
module = ['test_project.*']
ignore_errors = true
[tool.django-stubs]
django_settings_module = 'test_project.settings'
[tool.pyright]
pythonPlatform = 'All'
include = ['django_admin_generator']
ignore = ['.venv']
typeCheckingMode = 'strict'
reportPrivateUsage = false # dupe of ruff PLC2701
reportUnusedVariable = false # dupe of ruff F841
reportMissingTypeStubs = false
# django-stubs leaves many ORM generics as `Unknown` (e.g.
# `ManyToManyField[Unknown, Unknown]`); these flag stub gaps, not real bugs.
# mypy --strict remains the real-bug gate.
reportUnknownMemberType = false
reportUnknownVariableType = false
reportUnknownArgumentType = false
reportUnknownParameterType = false
reportUnknownLambdaType = false
[tool.pyrefly]
project-includes = ['django_admin_generator']
ignore-missing-imports = ['django_utils']