-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathpyproject.toml
More file actions
125 lines (113 loc) · 2.85 KB
/
Copy pathpyproject.toml
File metadata and controls
125 lines (113 loc) · 2.85 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools>=64",
"setuptools_scm>=8",
]
[project]
authors = [
{ email = "charles@declaresub.com", name = "Charles Yeomans" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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",
"Topic :: Software Development :: Code Generators",
"Topic :: Software Development :: Interpreters",
]
description = "Parsers for ABNF grammars."
dynamic = [
"version",
]
keywords = [
"abnf",
"generator",
"parser",
]
name = "abnf"
readme = "README.md"
requires-python = ">= 3.10"
[project.optional-dependencies]
dev = [
'check-manifest==0.51',
'pre-commit==4.6.0',
'pyright[nodejs]==1.1.410',
'pytest==9.1.1',
'pytest-cov==7.1.0',
'hypothesis==6.156.6',
'ruff==0.15.17',
'setuptools==82.0.1',
'tox==4.55.1',
'setuptools_scm==10.0.5',
]
# `pip install abnf[rust]` pulls in the companion `abnf-rust`
# distribution, which provides the compiled extension that
# `abnf.parser` routes its combinator primitives through. The
# pure-Python `abnf` package on its own remains the default and a
# fully working fallback (also forced via the ABNF_NO_RUST=1
# environment variable when the extra is installed).
rust = [
# Lock-stepped versioning: `abnf` and `abnf-rust` release under
# the same git tag. Lower bound matches the current minor; upper
# bound clamps to the next major so a future `abnf-rust` release
# with a breaking change can't silently come in via the extra.
'abnf-rust>=2.5,<3',
]
[tool.check-manifest]
ignore = [
# The packages/abnf-rust subtree builds the companion `abnf-rust`
# distribution and is intentionally excluded from the `abnf` sdist.
"packages",
"packages/**",
"tests/notes",
]
[tool.pytest.ini_options]
norecursedirs = [".tox", "venv", ".hypothesis"]
testpaths = ["tests"]
[tool.pyright]
pythonVersion = "3.10"
[tool.ruff]
target-version = "py310"
[tool.ruff.lint]
ignore = [
"COM812",
"E501",
"RUF001",
"S101",
]
select = [
"ASYNC",
"B",
"BLE",
"C4",
"COM",
"DTZ",
"E",
"EM",
"F",
"FURB",
"I",
"ICN",
"ISC",
"PERF",
"RUF",
"SIM",
"T20",
"UP",
]
[tool.ruff.lint.per-file-ignores]
# gen_corpus.py is a developer CLI utility; print() is its output channel.
"tests/fuzz/gen_corpus.py" = ["T201"]
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
mark-parentheses = false
[tool.ruff.lint.pyupgrade]
keep-runtime-typing = true
[tool.setuptools_scm]