This repository has been archived by the owner on Sep 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
142 lines (120 loc) · 3.23 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "django-healthy"
dynamic = ["version"]
description = "Simple health checking for django applications"
readme = "README.md"
requires-python = ">=3.8"
license = "MIT"
keywords = ["django"]
authors = [
{ name = "Christian Hartung", email = "christian.hartung@olist.com" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"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",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
]
dependencies = [
"asgiref",
"django>=4.2",
"typing-extensions; python_version<'3.12'"
]
[project.urls]
Documentation = "https://github.com/olist/django-healthy#readme"
Issues = "https://github.com/olist/django-healthy/issues"
Source = "https://github.com/olist/django-healthy"
[tool.coverage.run]
source_pkgs = ["healthy", "tests"]
branch = true
parallel = true
omit = [
"src/healthy/__about__.py",
]
[tool.coverage.paths]
healthy = ["src/healthy", "*/django-healthy/src/healthy"]
tests = ["tests", "*/django-healthy/tests"]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "testproj.settings"
pythonpath = [".", "src"]
[tool.hatch.build.targets.wheel]
packages = ["src/healthy"]
[tool.hatch.build.targets.sdist]
exclude = ["/.devcontainer", "/.github"]
[tool.hatch.version]
source = "vcs"
[tool.hatch.envs.default]
dependencies = [
"coverage[toml]>=6.5",
"pytest",
"pytest-asyncio",
"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>=4.2,<5.0", if = ["4.2"] },
{ value = "django>=5.0,<5.1", if = ["5.0"] },
{ value = "django>=5.1,<5.2", if = ["5.1"] },
]
[[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", "5.1"]
python = ["3.10", "3.11", "3.12"]
[tool.hatch.envs.types]
dependencies = [
"mypy>=1.0.0",
]
[tool.hatch.envs.types.scripts]
check = "mypy --install-types --non-interactive {args:src/healthy tests}"
[tool.hatch.envs.hatch-static-analysis]
config-path = "ruff_defaults.toml"
dependencies = ["ruff==0.6.2"]
[tool.ruff]
extend = "ruff_defaults.toml"
[tool.ruff.lint]
extend-select = ["DJ"]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "parents"