-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathpyproject.toml
More file actions
90 lines (82 loc) · 1.92 KB
/
Copy pathpyproject.toml
File metadata and controls
90 lines (82 loc) · 1.92 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
[build-system]
requires = ["setuptools>=68", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "textparser"
authors = [
{name = "Erik Moqvist"},
]
description = "A text parser library for python."
readme = "README.rst"
requires-python = ">=3.10"
keywords = ['parser', 'parsing']
license = "MIT"
dependencies = [
]
dynamic = ["version"]
[tool.setuptools_scm]
write_to = "textparser/version.py"
[project.urls]
homepage = "https://github.com/cantools/textparser"
documentation = "https://textparser.readthedocs.io/"
repository = "https://github.com/cantools/textparser"
[project.optional-dependencies]
examples = [
"lark-parser",
"pyparsing",
"parsita",
"funcparserlib",
"parsy",
"parsimonious",
"textx",
]
test = [
"mypy >= 2.1",
"ruff >= 0.15.16",
"pytest >= 9.0",
"coverage >= 7.14",
]
[tool.setuptools]
packages = ["textparser"]
[tool.mypy]
show_error_codes = true
warn_return_any = true
warn_unused_configs = true
no_implicit_optional = true
disallow_incomplete_defs = true
warn_redundant_casts = true
warn_unused_ignores = true
exclude = [
'build',
'textparser/version.py',
]
[tool.ruff]
line-length = 80
lint.extend-select = [
"A", # flake8-builtins
"B", # pyflakes-bugbear
"C4", # flake8-comprehensions
"E", # pycodestyle Error
"F", # pyflakes
"FURB", # refurb
"I", # isort
"PIE", # flake8-pie
"PL", # pylint
"RUF", # Ruff-specific rules
"TCH", # flake8-type-checking
"UP", # pyupgrade
"W", # pycodestyle Warning
]
lint.ignore = [
"E501", # line too long
"F541", # f-string-missing-placeholders
"PLR09", # too-many-this, too-many-that
"PLR2004", # magic-value-comparison
"PLW1641", # eq-without-hash
"PLW2901", # redefined-loop-name
"RUF012", # mutable-class-default
]
lint.isort.known-first-party = ["textparser"]
exclude = [
"textparser/version.py",
]