-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
151 lines (131 loc) · 3.16 KB
/
pyproject.toml
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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "django-management-commands"
description = "Modular discovery, aliasing, and sequencing of Django commands"
authors = [
{ name = "Kamil Paduszyński", email = "[email protected]" },
]
readme = "docs/README.md"
keywords = [
"django",
"django-application",
"django-commands",
"django-management-commands",
]
classifiers = [
"Framework :: Django",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
]
requires-python = ">= 3.9"
dependencies = [
"django >= 4.2, < 5.2",
"django-appconf ~= 1.0",
"typing-extensions ~= 4.12",
]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"commitizen ~= 3.29",
"django-stubs[compatible-mypy] ~= 5.0",
"nox == 2024.10.9",
"pre-commit ~= 3.8",
"pytest ~= 8.3",
"pytest-cov ~= 5.0",
"pytest-custom-exit-code ~= 0.3",
"pytest-django ~= 4.9",
"pytest-mock ~= 3.14",
"pytest-randomly ~= 3.15",
"ruff ~= 0.6",
]
[project.urls]
"Source" = "https://github.com/paduszyk/django-management-commands"
[tool.setuptools.dynamic]
version = { attr = "management_commands.__version__" }
[tool.ruff]
target-version = "py39"
[tool.ruff.lint]
select = ["ALL"]
ignore = ["ANN", "D1", "N"]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["ARG", "E501", "FBT", "PLR2004", "S101"]
[tool.ruff.lint.isort]
known-first-party = ["management_commands"]
required-imports = [
"from __future__ import annotations",
]
section-order = [
"future",
"standard-library",
"third-party",
"django",
"first-party",
"local-folder",
]
[tool.ruff.lint.isort.sections]
"django" = ["django"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.mypy]
mypy_path = "src/"
strict = true
plugins = [
"mypy_django_plugin.main",
]
[[tool.mypy.overrides]]
module = [
"appconf",
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = [
"noxfile",
"tests.*",
]
disallow_untyped_decorators = false
[tool.django-stubs]
django_settings_module = "tests.settings"
strict_settings = false
[tool.pytest.ini_options]
addopts = [
"-ra",
"--suppress-no-test-exit-code",
"--ds=tests.settings",
"--cov",
"--cov-append",
"--cov-branch",
"--cov-report=term-missing:skip-covered",
"--cov-report=xml",
]
pythonpath = [".", "src/"]
testpaths = ["tests/"]
[tool.coverage.run]
source = ["src/"]
[tool.coverage.report]
exclude_also = [
"if TYPE_CHECKING:",
]
[tool.coverage.html]
directory = ".htmlcov/"
[tool.coverage.xml]
output = "coverage.xml"
[tool.commitizen]
name = "cz_conventional_commits"
version = "1.1.0"
version_files = [
"src/management_commands/__init__.py:__version__",
]