Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
88 lines (75 loc) · 2.48 KB
/
Copy pathpyproject.toml
File metadata and controls
88 lines (75 loc) · 2.48 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
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "api-pentesting-toolkit"
version = "0.1.0"
description = "A progressive, authorization-aware toolkit of ten API security testing scripts aligned with the OWASP API Security Top 10 (2023)."
readme = "README.md"
requires-python = ">=3.10"
license = { file = "LICENSE" }
authors = [{ name = "Manasse Medi" }]
keywords = ["api", "security", "pentesting", "owasp", "appsec", "rest", "graphql"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Security",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
# Runtime dependencies are deliberately minimal. Each one earns its place:
# - httpx: modern HTTP client with timeouts, HTTP/2 and a testable transport layer.
# - PyYAML: audit/scope configuration files are authored in YAML.
dependencies = [
"httpx>=0.27,<1.0",
"PyYAML>=6.0,<7.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0,<9.0",
"pytest-cov>=5.0,<6.0",
"ruff>=0.6,<1.0",
"mypy>=1.11,<2.0",
"types-PyYAML",
]
[project.scripts]
apt = "api_pentesting.console:main"
[project.urls]
Homepage = "https://github.com/MediJr/api-pentesting-toolkit"
Documentation = "https://github.com/MediJr/api-pentesting-toolkit/tree/main/docs"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
api_pentesting = ["py.typed"]
[tool.pytest.ini_options]
minversion = "8.0"
addopts = "-ra -q"
testpaths = ["tests"]
pythonpath = ["src"]
markers = [
"integration: integration tests exercising multiple modules against mock servers",
]
[tool.coverage.run]
branch = true
source = ["api_pentesting"]
[tool.coverage.report]
# A modest, honest gate. The suite is unit+integration, not exhaustive.
fail_under = 80
show_missing = true
[tool.ruff]
line-length = 110
target-version = "py310"
src = ["src", "scripts", "tests"]
[tool.ruff.lint]
# Pragmatic rule set: pyflakes, pycodestyle, isort, bugbear, comprehensions, pyupgrade.
select = ["E", "F", "I", "B", "C4", "UP"]
ignore = ["E501"] # line length handled by the formatter, not enforced hard
[tool.mypy]
python_version = "3.10"
packages = ["api_pentesting"]
ignore_missing_imports = true
warn_unused_ignores = true
# Pragmatic: not strict everywhere, but catches obvious type errors in the library.
check_untyped_defs = true