-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
65 lines (54 loc) · 1.17 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
[project]
name = "anykap"
description = "Rule Based Observability in Kubernetes Nodes"
requires-python = ">=3.9"
authors = [
{name = "Ping He", email="[email protected]"},
]
readme = "README.md"
license = {text = "MIT License"}
dynamic = ["version"]
dependencies = [
"pyyaml >= 6"
]
[tool.pytest.ini_options]
minversion = "7"
addopts = "-ra"
asyncio_mode = "auto"
testpaths = [
"tests",
]
[project.scripts]
kubectl-anykap = "anykap.client:main"
[tool.hatch]
[tool.hatch.version]
path = "src/anykap/__init__.py"
[tool.hatch.envs.default]
dependencies = [
"pytest",
"pytest-asyncio",
"pytest-cov",
"pytest-kubernetes",
"azure-storage-blob", # for testing azureblob
]
[[tool.hatch.envs.test.matrix]]
python = ["3.9", "3.10", "3.11", "3.12"]
[tool.hatch.envs.lint]
detached = true
dependencies = [
"black",
"ruff",
]
[tool.hatch.envs.lint.scripts]
lint = ["black --check --diff {args:.}", "ruff check {args:.}"]
format = ["black {args:.}", "ruff format {args:.}"]
[tool.hatch.envs.docs]
dependencies = [
"sphinx ~= 7.2.6",
"myst-parser ~= 2.0.0",
]
[tool.ruff]
target-version = "py39"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"