-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
111 lines (98 loc) · 2.86 KB
/
pyproject.toml
File metadata and controls
111 lines (98 loc) · 2.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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["scripts"]
[project]
name = "f5xc-api-fixed"
version = "0.1.0"
description = "F5 XC API Spec Validation Framework - Reconcile live API behavior with OpenAPI specs"
readme = "README.md"
requires-python = ">=3.10"
license = "MIT"
authors = [
{ name = "Robin Mordasiewicz" }
]
keywords = ["f5", "xc", "openapi", "validation", "schemathesis"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"requests>=2.32.0",
"pyyaml>=6.0.2",
"openapi-spec-validator>=0.7.2",
"jsonschema>=4.23.0",
"httpx>=0.28.0",
"rich>=13.9.0",
"schemathesis>=3.28.0",
"hypothesis>=6.100.0",
"deepdiff>=8.0.0",
"jinja2>=3.1.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0.0",
"pytest-cov>=4.1.0",
"pytest-asyncio>=0.23.0",
"ruff>=0.4.0",
"mypy>=1.10.0",
"types-requests>=2.32.0",
"types-PyYAML>=6.0.0",
"pre-commit>=4.0.0",
"bandit[toml]>=1.8.0",
]
docs = [
"mkdocs>=1.6.0",
"mkdocs-material>=9.5.0",
"mkdocs-minify-plugin>=0.8.0",
]
[project.scripts]
f5xc-download = "scripts.download:main"
f5xc-validate = "scripts.validate:main"
f5xc-reconcile = "scripts.reconcile:main"
f5xc-release = "scripts.release:main"
[tool.ruff]
target-version = "py311"
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "I", "N", "W", "UP", "B", "C4", "SIM"]
ignore = [
"E501", # Line too long (handled by formatter)
"SIM102", # Use single if statement (readability preference)
"SIM105", # Use contextlib.suppress (readability preference)
"SIM108", # Use ternary operator (readability preference)
"SIM118", # Use key in dict (style preference)
"F841", # Local variable assigned but never used (intentional in some cases)
"B007", # Loop control variable not used (intentional)
"UP038", # Use X | Y in isinstance (Python 3.9 compat preference)
]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
addopts = "-v --tb=short"
asyncio_mode = "auto"
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
[tool.coverage.run]
source = ["scripts"]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
"raise NotImplementedError",
]
[tool.bandit]
exclude_dirs = ["tests", ".venv", "venv"]
skips = ["B101"] # Skip assert warnings in non-test code (we use them appropriately)
[tool.bandit.assert_used]
skips = ["*_test.py", "test_*.py", "conftest.py"]