-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
186 lines (167 loc) · 4.86 KB
/
Copy pathpyproject.toml
File metadata and controls
186 lines (167 loc) · 4.86 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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
[project]
name = "fast-healthchecks"
version = "1.0.0"
description = "Fast Healthchecks"
readme = "README.md"
license = {text = "MIT"}
authors = [
{name = "Vladislav Shepilov", email = "shepilov.v@protonmail.com"},
]
maintainers = [
{name = "Vladislav Shepilov", email = "shepilov.v@protonmail.com"},
]
keywords = [
"healthcheck", "library",
"fastapi", "starlette", "faststream", "litestar",
"asyncpg", "psycopg", "redis", "aio-pika", "httpx", "aiokafka", "motor",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries",
"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",
]
requires-python = "<3.15.0,>=3.10.0"
dependencies = []
[tool.setuptools.package-data]
fast_healthchecks = ["py.typed"]
[tool.setuptools.packages]
find = {}
[project.urls]
homepage = "https://github.com/ZYLVEXT/fast-healthchecks"
documentation = "https://zylvext.github.io/fast-healthchecks/"
source = "https://github.com/ZYLVEXT/fast-healthchecks"
tracker = "https://github.com/ZYLVEXT/fast-healthchecks/issues"
[project.optional-dependencies]
asyncpg = ["asyncpg>=0.31.0,<1.0.0"]
psycopg = ["psycopg>=3.3.3,<4.0.0"]
redis = ["redis>=7.3.0,<8.0.0"]
aio-pika = ["aio-pika>=9.6.1,<10.0.0"]
httpx = ["httpx>=0.28.1,<1.0.0"]
aiokafka = ["aiokafka>=0.13.0,<1.0.0"]
motor = ["motor>=3.7.1,<4.0.0"]
fastapi = ["fastapi[standard]>=0.135.1,<1.0.0"]
faststream = ["faststream>=0.6.7,<1.0.0"]
litestar = ["litestar>=2.21.1,<3.0.0"]
opensearch = ["opensearch-py[async]>=3.1.0,<4.0.0"]
[dependency-groups]
dev = [
"commitizen>=4.13.9",
"pip-audit>=2.10.0",
"pre-commit-uv>=4.2.1",
"pytest>=9.0.2",
"pytest-cov>=7.0.0",
"pytest-asyncio>=1.3.0",
"pytest-deadfixtures>=3.1.0",
"python-dotenv>=1.2.2",
"pytest-timeout>=2.4.0",
"pytest-xdist>=3.8.0",
"pre-commit>=4.5.1",
"ruff>=0.15.6",
"rust-just>=1.46.0",
"ty>=0.0.23",
"deptry>=0.24.0",
]
docs = [
"mkdocstrings[python]>=1.0.3",
"pymdown-extensions>=10.21",
"zensical>=0.0.27",
]
[tool.ty.environment]
# Match project.requires-python minimum for type-checking.
python-version = "3.10"
[tool.deptry]
experimental_namespace_package = true
pep621_dev_dependency_groups = ["dev", "docs"]
[tool.deptry.per_rule_ignores]
DEP004 = ["dotenv"]
[tool.uv]
default-groups = []
[tool.ruff]
line-length = 120
# Assume Python 3.10 to be compatible with typing.
target-version = "py310"
# Exclude a variety of commonly ignored directories.
exclude = [
".git",
".ruff_cache",
".tox",
]
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
[tool.ruff.lint]
preview = true
select = ["ALL"]
ignore = [
"E501", # line too long, handled by ruff-format
"CPY001", # Missing copyright notice at top of file
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["ARG001", "N802", "N806", "S", "SLF"]
[tool.pytest.ini_options]
# 60s so integration tests (network I/O, e.g. OpenSearch to invalid host) don't get killed on Windows
# where pytest-timeout uses thread method and can crash the worker when timeout fires
timeout = 60
pythonpath = ["."]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "session"
minversion = "9.0"
addopts = "-ra -q"
filterwarnings = [
"error",
"error:::fast_healthchecks",
]
markers = """
imports: mark a test as an imports test
integration: mark a test as an integration test
unit: mark a test as a unit test
"""
[tool.coverage.run]
source = ["fast_healthchecks"]
[tool.coverage.report]
precision = 1
include = ["fast_healthchecks/*"]
omit = [
"tests/*",
]
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't check obviously not implemented
"raise NotImplementedError",
# We don't really care what happens if fail
"except ImportError:",
# Don't check for typing-only code
"if TYPE_CHECKING:",
# Don't check for code that only runs itself
"if __name__ == .__main__.:",
]
show_missing = true
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "$version"
version_scheme = "semver"
version_provider = "pep621"
update_changelog_on_bump = false
major_version_zero = false
version_files = [
"pyproject.toml:version",
"fast_healthchecks/__init__.py:__version__",
]
[build-system]
requires = ["setuptools>=61", "wheel"]
build-backend = "setuptools.build_meta"