-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
87 lines (79 loc) · 2.57 KB
/
Copy pathpyproject.toml
File metadata and controls
87 lines (79 loc) · 2.57 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
[project]
name = "pypeg2"
version = "2.16.0"
description = "An intrinsic PEG Parser-Interpreter for Python"
readme = "README.md"
license = "GPL-2.0"
authors = [
{ name = "Volker Birk", email = "vb@dingens.org" }
]
maintainers = [
{ name = "Alessio Deiana", email = "adeiana@gmail.com" }
]
requires-python = ">=3.12"
dependencies = []
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Compilers",
"Topic :: Software Development :: Interpreters",
"Topic :: Software Development :: Libraries :: Python Modules",
]
[project.optional-dependencies]
xml = ["lxml"]
[project.urls]
Repository = "https://github.com/osso/pypeg"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[dependency-groups]
dev = [
"pytest>=8.0",
"pyright>=1.1",
"ruff>=0.8",
"lxml",
"pytest-cov>=7.0.0",
]
[tool.ruff]
line-length = 100
target-version = "py312"
exclude = ["samples"]
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B"]
ignore = [
"E501", # line length
"E701", # multiple statements on one line
"E721", # type comparison (used extensively for grammar type checking)
"E731", # lambda assignments (used for markers like endl, blank)
"E741", # ambiguous variable names (L, t, r used throughout)
"F401", # unused imports (conditional debug imports)
"F841", # unused variable (debug/assertion patterns)
"B006", # mutable default arguments (intentional for parser state)
"B007", # loop control variable not used
"B018", # useless expressions (attribute access checks using try/except)
"B028", # stacklevel in warnings
"B904", # raise from (legacy code pattern)
"UP004", # keep explicit object inheritance for clarity
"UP008", # keep explicit super() for compatibility
"UP028", # keep yield in for loop for clarity
"UP031", # keep % formatting for readability
]
[tool.pyright]
typeCheckingMode = "basic"
reportFunctionMemberAccess = false
reportAttributeAccessIssue = false
reportOptionalSubscript = false
reportOptionalMemberAccess = false
reportOptionalOperand = false
reportOperatorIssue = false
reportArgumentType = false
reportCallIssue = false
reportPossiblyUnboundVariable = false
reportGeneralTypeIssues = false
[tool.pytest.ini_options]
testpaths = ["pypeg2/test"]