-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathpyproject.toml
More file actions
104 lines (95 loc) · 2.86 KB
/
Copy pathpyproject.toml
File metadata and controls
104 lines (95 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
[project]
name = "shacl2code"
description = "Convert SHACL model file to code bindings"
dynamic = ["version"]
dependencies = [
"jinja2 >= 3.1.2",
"rdflib >= 7.0.0",
]
requires-python = ">= 3.9"
authors = [
{name = "Joshua Watt", email = "JPEWhacker@gmail.com"},
]
readme = "README.md"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"Topic :: Software Development :: Code Generators",
"Programming Language :: C++",
"Programming Language :: Go",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Rust",
"Topic :: File Formats :: JSON :: JSON Schema",
]
license = "MIT"
[project.optional-dependencies]
dev = [
"black >= 25.11.0",
"flake8 >= 7.0.0",
"flake8-import-order >= 0.19.2",
"jsonschema >= 4.25.1", # latest version for Python 3.9 is 4.25.x
"mypy >= 1.19.1", # latest version for Python 3.9 is 1.19.x
"pyrefly >= 0.55.0",
"pyright >= 1.1.403",
"pyshacl >= 0.25.0",
"pytest >= 7.4",
"pytest-cov >= 4.1",
"pytest-xdist >= 3.5",
"types-jsonschema >= 4.25.1",
]
[project.urls]
Homepage = "https://github.com/JPEWdev/shacl2code"
Repository = "https://github.com/JPEWdev/shacl2code.git"
Issues = "https://github.com/JPEWdev/shacl2code/issues"
[project.scripts]
shacl2code = "shacl2code:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.version]
path = "src/shacl2code/version.py"
[tool.mypy]
disallow_incomplete_defs = true
# disallow_untyped_defs = true
extra_checks = true
mypy_path = ["testfixtures"]
pretty = true
show_column_numbers = true
# strict = true
strict_bytes = true
# strict_equality = true
# strict_equality_for_none = true
warn_redundant_casts = true
# warn_return_any = true
# warn_unreachable = true
# warn_unused_ignores = true
[tool.pytest.ini_options]
addopts = [
"--import-mode=importlib",
"--cov=shacl2code",
"-n",
"auto",
"--dist=loadfile",
]
# Suppress 3rd-party warnings to reduce log noise. Remove after libraries get updated.
filterwarnings = [
"ignore:.*ConjunctiveGraph is deprecated.*:DeprecationWarning", # From rdflib
"ignore:.*Dataset.default_context is deprecated.*:DeprecationWarning", # From rdflib, pyshacl
"ignore:.*Dataset.contexts is deprecated.*:DeprecationWarning", # From rdflib
]
pythonpath = [
"testfixtures"
]
[tool.coverage.run]
relative_files = true
patch = ["subprocess"]
[tool.black]
target-version = ["py39", "py310", "py311", "py312", "py313", "py314"]
include = '(\.pyi?(\.j2)?$)|(main\.py\.j2$)'