-
Notifications
You must be signed in to change notification settings - Fork 114
/
pyproject.toml
149 lines (124 loc) · 3.62 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "django-pwa"
dynamic = ["version"]
description = "A Django app to include a manifest.json and Service Worker instance to enable progressive web app behavior"
readme = "README.md"
license = { file = "LICENSE" }
authors = [{ name = "Silvio Luis", email = "[email protected]" }]
maintainers = [{ name = "Christian Hartung", email = "[email protected]" }]
classifiers = [
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
]
requires-python = ">=3.8"
dependencies = ["django>=3.2"]
[project.urls]
Repository = "http://github.com/silviolleite/django-pwa"
Issues = "http://github.com/silviolleite/django-pwa/issues"
[tool.coverage.run]
source_pkgs = ["pwa", "tests"]
branch = true
parallel = true
[tool.coverage.paths]
pwa = ["src/pwa", "*/django-pwa/src/pwa"]
tests = ["tests", "*/django-pwa/tests"]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.deptry]
known_first_party = ["pwa"]
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "testproj.settings"
pythonpath = [".", "src"]
[tool.hatch.build.targets.sdist]
exclude = ["/.devcontainer", "/.github"]
[tool.hatch.build.targets.wheel]
packages = ["src/pwa"]
[tool.hatch.version]
source = "vcs"
[tool.hatch.envs.default]
dependencies = [
"coverage[toml]>=6.5",
"faker",
"pytest",
"pytest-django",
]
[tool.hatch.envs.default.scripts]
test = "pytest {args:tests}"
test-cov = "coverage run -m pytest {args:tests}"
cov-report = [
"- coverage combine",
"coverage report",
]
cov = [
"test-cov",
"cov-report",
]
[[tool.hatch.envs.all.matrix]]
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]
[tool.hatch.envs.style]
detached = true
dependencies = ["deptry", "pre-commit"]
[tool.hatch.envs.style.scripts]
deps = "deptry ."
lint = "pre-commit run -a -v"
update = "pre-commit autoupdate"
check = [
"deps",
"lint",
]
[tool.hatch.envs.tests.overrides]
matrix.django.dependencies = [
{ value = "django>=3.2,<4.0", if = ["3.2"] },
{ value = "django>=4.0,<4.1", if = ["4.0"] },
{ value = "django>=4.1,<4.2", if = ["4.1"] },
{ value = "django>=4.2,<5.0", if = ["4.2"] },
{ value = "django>=5.0,<5.1", if = ["5.0"] },
]
[[tool.hatch.envs.tests.matrix]]
django = ["3.2"]
python = ["3.8", "3.9", "3.10"]
[[tool.hatch.envs.tests.matrix]]
django = ["4.0"]
python = ["3.8", "3.9", "3.10"]
[[tool.hatch.envs.tests.matrix]]
django = ["4.1"]
python = ["3.8", "3.9", "3.10", "3.11"]
[[tool.hatch.envs.tests.matrix]]
django = ["4.2"]
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]
[[tool.hatch.envs.tests.matrix]]
django = ["5.0"]
python = ["3.10", "3.11", "3.12"]
[tool.hatch.envs.hatch-static-analysis]
config-path = "ruff_defaults.toml"
dependencies = ["ruff==0.7.4"]
[tool.ruff]
extend = "ruff_defaults.toml"
[tool.ruff.lint]
extend-select = ["DJ"]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "parents"