-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
113 lines (96 loc) · 2.89 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
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
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "csaf"
version = "2024.12.18"
description = "Common Security Advisory Framework (CSAF) Verification, Validation, and Application Programming Interface (API)."
readme = "README.md"
license = {file = "LICENSE"}
authors = [{ name = "Stefan Hagen", email = "[email protected]" }]
maintainers = [{ name = "Stefan Hagen", email = "[email protected]" }]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.9",
"Topic :: Software Development :: Build Tools",
"Topic :: Software Development :: Libraries",
]
keywords = [
"code-generation",
"developer-tools",
"validation",
"verification",
]
dependencies = [
"jmespath >= 1.0.1",
"jsonschema >= 4.23.0",
"langcodes >= 3.5.0",
"lazr.uri >= 1.0.7",
"msgspec >= 0.18.6",
"pydantic >= 2.10.3",
"referencing >= 0.35.1",
"scooby >= 0.10.0",
"setuptools >= 75.6.0",
"typer >= 0.15.1",
]
requires-python = ">=3.9"
[project.optional-dependencies]
dev = ["black", "coverage", "hypothesis", "mypy", "pytest", "pytest-cov", "pytest-flake8", "ruff"]
[project.urls]
Homepage = "https://git.sr.ht/~sthagen/csaf"
Bug-Tracker = "https://todo.sr.ht/~sthagen/csaf"
Documentation = "https://codes.dilettant.life/docs/csaf"
Source-Code = "https://git.sr.ht/~sthagen/csaf"
Test-Coverage = "https://codes.dilettant.life/coverage/csaf"
[project.scripts]
csaf = "csaf.cli:app"
[tool.setuptools.packages.find]
include = [
"csaf",
"csaf.mandatory",
"csaf.schema_proxy",
]
exclude = ["test*"]
[tool.black]
line-length = 120
skip-string-normalization = true
target-version = [ "py39", "py310", "py311", "py312" ]
[tool.coverage.run]
branch = true
[tool.coverage.report]
precision = 2
exclude_lines = [ "pragma: no cover", "raise NotImplementedError", "if TYPE_CHECKING:", "@overload" ]
omit = [ "*/__main__.py" ]
[tool.mypy]
strict = true
implicit_reexport = true
[tool.pytest]
testpaths = "test"
filterwarnings = "error"
[tool.pytest.ini_options]
asyncio_default_fixture_loop_scope = "function"
[tool.ruff]
line-length = 120
exclude = [ ".direnv", ".eggs", ".git", ".mypy_cache", ".ruff_cache", ".venv", "__pypackages__", "bin", "dist", "venv" ]
target-version = "py312"
[tool.ruff.lint]
select = [ "E", "F", "Q" ]
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"
inline-quotes = "single"
[tool.ruff.lint.flake8-import-conventions.aliases]
altair = "alt"
"matplotlib.pyplot" = "plt"
numpy = "np"
pandas = "pd"
seaborn = "sns"
[tool.ruff.lint.mccabe]
max-complexity = 42
[tool.ruff.lint.per-file-ignores]
"__init__.py" = [ "E402" ]