-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
116 lines (99 loc) · 2.86 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
114
115
116
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "csaf-lint"
version = "2022.3.20"
description = "Common Security Advisory Framework (CSAF) Verification, Validation, and Application Programming Interface (API)."
readme = "README.md"
license = {file = "LICENSE"}
authors = [{ name = "Stefan Hagen", email = "stefan@hagen.link" }]
maintainers = [{ name = "Stefan Hagen", email = "stefan@hagen.link" }]
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.9",
"Topic :: Software Development :: Build Tools",
"Topic :: Software Development :: Libraries",
]
keywords = [
"baseline",
"body",
"core",
"csaf",
"cvrf",
"developer-tools",
"envelope",
"extension",
"profile",
"validation",
]
dependencies = [
"attrs >= 23.1.0",
"jsonschema >= 4.20.0",
"referencing >= 0.31.0",
"lxml >= 4.9.3",
"xmlschema >= 2.5.0",
]
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-lint"
Bug-Tracker = "https://todo.sr.ht/~sthagen/csaf-lint"
Documentation = "https://codes.dilettant.life/docs/csaf-lint"
Source-Code = "https://git.sr.ht/~sthagen/csaf-lint"
Test-Coverage = "https://codes.dilettant.life/coverage/csaf-lint"
[project.scripts]
csaf-lint = "csaf_lint.cli:app"
[tool.setuptools.packages.find]
include = [
"csaf_lint",
"csaf_lint.schema",
"examples",
]
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]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"serial",
]
[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" ]