-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
126 lines (107 loc) · 2.65 KB
/
pyproject.toml
File metadata and controls
126 lines (107 loc) · 2.65 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
[build-system]
requires = ["hatchling", "hatch-regex-commit"]
build-backend = "hatchling.build"
[project]
name = "pythonkuma"
dynamic = ["version"]
description = "Simple Python wrapper for Uptime Kuma"
readme = "README.md"
license = "MIT"
requires-python = ">=3.12"
authors = [
{ name = "Manfred Dennerlein Rodelo", email = "manfred@dennerlein.name" },
{ name = "Jayakorn Karikan", email = "jayakornk@gmail.com" },
]
classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
]
dependencies = [
"aiohttp>=3.12.9",
"prometheus-client>=0.21.0",
"mashumaro>=3.13.1",
]
[project.urls]
Source = "https://github.com/tr4nt0r/pythonkuma"
Documentation = "https://tr4nt0r.github.io/pythonkuma"
[tool.hatch.version]
source = "regex_commit"
commit_extra_args = ["-e"]
path = "pythonkuma/__init__.py"
[tool.hatch.build.targets.sdist]
include = [
"/pythonkuma",
]
[[tool.hatch.envs.hatch-test.matrix]]
python = ["3.14", "3.13", "3.12"]
[tool.hatch.envs.default]
dependencies = [
"ruff==0.15.11",
"aiohttp==3.13.5",
"prometheus-client==0.25.0",
"mashumaro==3.20",
"mkdocs-material==9.7.6",
"mkdocstrings[python]==1.0.4",
"pytest-asyncio==1.3.0",
"pytest==9.0.3",
"pytest-cov==7.1.0",
"syrupy==5.1.0",
]
[tool.hatch.envs.hatch-static-analysis]
dependencies = [
"ruff==0.15.11",
]
config-path = "none"
[tool.pytest.ini_options]
addopts = "--cov=pythonkuma/ --cov-report=term-missing"
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope="module"
testpaths = ["tests"]
pythonpath = ["pythonkuma"]
[tool.hatch.envs.hatch-test]
extra-dependencies = [
"pytest-cov==7.1.0",
"pytest-asyncio==1.3.0",
"syrupy==5.1.0",
]
extra-args = ["--cov-report=xml", "-vv"]
[tool.hatch.envs.default.scripts]
docs-serve = "mkdocs serve"
docs-build = "mkdocs build"
[tool.ruff]
target-version = "py314"
line-length = 88
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = 80
quote-style = "double"
indent-style = "space"
[tool.ruff.lint]
select = ["ALL"]
ignore = ["TRY003", "COM812", "N818", "C901"]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101", "TC002", "TC003"]
[lint.per-file-ignores]
"**/scripts/*" = [
"INP001",
"T201",
]
"**/tests/**/*" = [
"PLC1901",
"PLR2004",
"PLR6301",
"S",
"TID252",
]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "parents"
[tool.ruff.lint.isort]
known-first-party = ["pyuptimekuma"]
force-sort-within-sections = true
combine-as-imports = true
split-on-trailing-comma = false
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
mark-parentheses = false
[tool.ruff.lint.pydocstyle]
convention = "numpy"