generated from dynatrace-oss/template-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
98 lines (85 loc) · 2.1 KB
/
pyproject.toml
File metadata and controls
98 lines (85 loc) · 2.1 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "k8s-exploit-toolkit"
version = "1.0.0"
description = "Kubernetes Exploit Toolkit for Security Testing and Education"
authors = [{name = "Dynatrace OSS", email = "opensource@dynatrace.com"}]
license = "Apache-2.0"
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
"click>=8.1.0",
"kubernetes>=28.1.0",
"pyyaml>=6.0",
"rich>=13.7.0",
"tabulate>=0.9.0",
"jsonpatch>=1.33",
"python-decouple>=3.4",
]
[project.urls]
Homepage = "https://github.com/dynatrace-oss/k8s-exploit-toolkit"
Repository = "https://github.com/dynatrace-oss/k8s-exploit-toolkit"
[project.scripts]
k8s-exploit = "k8s_exploit_toolkit.cli:main"
k8s-exploit-toolkit = "k8s_exploit_toolkit.exploit_k8s:main"
[dependency-groups]
dev = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"ruff>=0.1.0",
"mypy>=0.991",
"pre-commit>=3.0.0",
"pip-audit>=2.0.0",
"safety>=3.0.0",
"types-pyyaml>=6.0.12",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "--cov=k8s_exploit_toolkit --cov-report=term-missing --cov-report=xml"
[tool.coverage.run]
source = ["k8s_exploit_toolkit"]
omit = [
"*/tests/*",
"*/test_*",
"setup.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
]
[tool.mypy]
python_version = "3.13"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
strict_equality = true
[[tool.mypy.overrides]]
module = [
"kubernetes.*",
"jsonpatch",
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["tests.*", "examples.*"]
disallow_untyped_defs = false
warn_unreachable = false
[tool.ruff]
line-length = 100
target-version = "py313"
[tool.ruff.lint]
select = ["E", "F", "I", "N", "W", "UP"]
ignore = ["E501"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]