-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
103 lines (91 loc) · 2.38 KB
/
pyproject.toml
File metadata and controls
103 lines (91 loc) · 2.38 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
[build-system]
requires = ["hatchling", "uv-dynamic-versioning"]
build-backend = "hatchling.build"
[project]
name = "PyJSG"
description = "Python JSON Schema Grammar interpreter"
authors = [
{ name = "Harold Solbrig", email = "solbrig@jhu.edu" },
{ name = "Wouter-Michiel Vierdag", email = "michiel.vierdag@scverse.org" }
]
license = { text = "CC0 1.0 Universal" }
repository = "https://github.com/hsolbrig/pyjsg"
readme = "README.md"
keywords = [
"JSG",
"Javascript",
"Schema",
"Python",
"Code Generator",
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Software Development",
"Topic :: Software Development :: Code Generators",
"License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication",
"Programming Language :: Python :: 3 :: Only",
"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",
]
requires-python = ">=3.10"
dynamic = ["version"]
dependencies = [
"antlr4-python3-runtime~=4.9.3",
"jsonasobj>=1.2.1",
"requests",
]
[project.scripts]
generate_parser = "pyjsg.parser_impl.generate_python:generate"
[tool.uv-dynamic-versioning]
vcs = "git"
style = "pep440"
fallback-version = "0.0.0"
[tool.hatch.version]
source = "uv-dynamic-versioning"
[tool.hatch.build.targets.wheel]
packages = ["pyjsg"]
[dependency-groups]
dev = [
"yadict_compare",
"pytest",
"pytest-forked",
"coverage",
]
[tool.black]
line-length = 120
target-version = ["py310", "py311", "py312", "py313", "py314"]
[tool.codespell]
skip = [
".git",
"uv.lock",
"*.toml",
]
[tool.tox]
requires = ["tox>=4"]
env_list = ["lint", "py{310,311,312,313}"]
[tool.tox.env_run_base]
allowlist_externals = ["uv"]
deps = ["pytest"]
commands = [
["uv", "sync", "--all-extras", "--dev"],
["uv", "run", "pytest", "{posargs}"],
]
[tool.tox.env.codespell]
description = "Run spell checkers."
skip_install = true
deps = [
"codespell",
"tomli", # required for getting config from pyproject.toml
]
commands = [
["codespell", "{posargs}"]
]
[tool.coverage.report]
# We need to do this because when dynamically generating, there is no source code causing an error
ignore_errors = true