Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
167 lines (158 loc) · 3.82 KB
/
Copy pathpyproject.toml
File metadata and controls
167 lines (158 loc) · 3.82 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
[build-system]
build-backend = "setuptools.build_meta"
requires = [ "setuptools>=61" ]
[project]
name = "django-qsstats-magic"
version = "2.0.0"
description = "A django microframework that eases the generation of aggregate data for querysets."
license = "BSD-3-Clause"
maintainers = [ { name = "Basil Shubin", email = "basil.shubin@gmail.com" } ]
authors = [
{ name = "Matt Croydon", email = "mcroydon@gmail.com" },
{ name = "Mikhail Korobov", email = "kmike84@gmail.com" },
]
requires-python = ">=3.10"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 5.2",
"Framework :: Django :: 6.0",
"Framework :: Django :: 6.1",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dynamic = [ "readme" ]
dependencies = [
"django>=5.2",
"python-dateutil",
]
urls.download = "https://github.com/bashu/django-qsstats-magic/zipball/master"
urls.homepage = "https://github.com/bashu/django-qsstats-magic/"
[dependency-groups]
dev = [
"coverage==7.16.1",
"django-stubs[compatible-mypy]==6.0.9",
"django-upgrade==1.32.0",
"mypy==2.3.1",
"pre-commit==4.6.2",
"pytest==9.1.1",
"pytest-django==4.14.0",
"pytest-sugar==1.1.1",
"ruff==0.16.9",
]
[tool.setuptools]
packages.find.include = [ "qsstats*" ]
dynamic.readme = { file = [ "README.rst", "CHANGES.rst" ], content-type = "text/x-rst" }
zip-safe = false
# ==== ruff ====
[tool.ruff]
# Exclude a variety of commonly ignored directories.
extend-exclude = [
"*/migrations/*.py",
]
lint.select = [
"A",
"ASYNC",
"B",
"BLE",
"C4",
"C90",
"COM",
"DJ",
"DTZ",
"E",
"EM",
"ERA",
"EXE",
"F",
"FA",
"FBT",
"FLY",
"G",
"I",
"ICN",
"INP",
"INT",
"ISC",
"N",
"PD",
"PERF",
"PGH",
"PIE",
"PL",
"PT",
"PTH",
"PYI",
"Q",
"RET",
"RSE",
"RUF",
"S",
"SIM",
"SLF",
"SLOT",
"T10",
"T20",
"TC",
"TID",
"TRY",
"UP",
"W",
"YTT",
]
lint.ignore = [
"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
# of types for comparison.
# Deactivated because it can make the code slow:
# https://github.com/astral-sh/ruff/issues/7871
]
lint.isort.default-section = "third-party"
lint.isort.force-single-line = true
lint.isort.known-first-party = [ "qsstats" ]
lint.isort.section-order = [ "future", "standard-library", "django", "third-party", "first-party", "local-folder" ]
lint.isort.sections.django = [ "django" ]
# ==== pyproject-fmt ====
[tool.pyproject-fmt]
keep_full_version = true
# ==== mypy ====
[tool.mypy]
ignore_missing_imports = true
python_version = "3.15"
check_untyped_defs = true
warn_redundant_casts = true
warn_unused_ignores = true
plugins = [
"mypy_django_plugin.main",
]
warn_unused_configs = true
overrides = [
# Django migrations should not produce any errors:
{ module = "*.migrations.*", ignore_errors = true },
]
[tool.django-stubs]
django_settings_module = "qsstats.tests.settings"
[tool.pytest]
ini_options.minversion = "6.0"
ini_options.python_files = [
"test_*.py",
"tests.py",
]
# ==== pytest ====
ini_options.addopts = [ "--ds=qsstats.tests.settings", "--reuse-db", "--import-mode=importlib" ]
# ==== Coverage ====
[tool.coverage]
run.source = [ "qsstats" ]
run.omit = [ "*/migrations/*", "*/tests/*" ]
run.relative_files = true