forked from ChelseaKR/ctdl-validate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
81 lines (67 loc) · 1.89 KB
/
Copy pathpyproject.toml
File metadata and controls
81 lines (67 loc) · 1.89 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
[build-system]
requires = ["setuptools>=83.0.0"]
build-backend = "setuptools.build_meta"
[project]
name = "ctdl-validate"
version = "0.2.1"
description = "Deterministic structural validator for CTDL JSON-LD payloads, run before publication to the Credential Registry."
readme = "README.md"
requires-python = ">=3.12"
license = { text = "Apache-2.0" }
authors = [{ name = "Chelsea Kelly-Reif" }]
keywords = ["ctdl", "credential-engine", "json-ld", "validation", "credentials"]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Topic :: Education",
"Topic :: Software Development :: Quality Assurance",
]
dependencies = []
[dependency-groups]
dev = [
"mypy>=1.18",
"pip-audit>=2.7",
"pytest>=8",
"pytest-cov>=5.0",
"ruff>=0.15",
]
[project.scripts]
ctdl-validate = "ctdl_validate.cli:entrypoint"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
ctdl_validate = ["py.typed", "vendor/SOURCES.md", "vendor/*/*.json"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-q"
[tool.coverage.run]
branch = true
source = ["src"]
[tool.coverage.report]
fail_under = 90
show_missing = true
[tool.mypy]
strict = true
python_version = "3.12"
files = ["src", "tests", "tools"]
warn_unreachable = true
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = true
[tool.ruff]
line-length = 100
target-version = "py312"
[tool.ruff.lint]
select = ["E", "W", "F", "I", "UP", "B", "SIM", "RET", "C4", "C90", "PL"]
ignore = [
"PLR0912", # too many branches: the check functions are long by nature
"PLR0911", # too many returns
"PLR2004", # magic values: character offsets in the CTID grammar are the spec
]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["PLR0915"]