-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
84 lines (74 loc) · 2.14 KB
/
Copy pathpyproject.toml
File metadata and controls
84 lines (74 loc) · 2.14 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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "pytregex"
authors = [{name = "Long Tan", email = "tanloong@foxmail.com"}]
description = "Tregex written in Python"
dependencies = []
readme = "README.md"
requires-python = ">=3.9"
license-files = ["LICENSE"]
dynamic = ["version"]
classifiers = [
"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",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
]
[project.urls]
Homepage = "https://github.com/tanloong/pytregex"
[project.scripts]
pytregex = "pytregex.main:main"
[tool.setuptools.dynamic]
version = {attr = "pytregex.__version__"}
[tool.setuptools.packages.find]
where = ["src"]
# Ruff complete options: https://docs.astral.sh/ruff/settings/#extend
[tool.ruff]
line-length = 112
extend-exclude = [
"src/pytregex/ply",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # Pyflakes
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"I", # isort
]
ignore = [
"E501", # Line too long
# "B011",
# "UP038", # 'isinstance(x, int | float)' causes slower code
# "B007", # Loop control variable `i` not used within loop body
]
[tool.ruff.lint.per-file-ignores]
"src/pytregex/tregex.py" = [
"F841", # Local variable assigned to but never used
]
"tests/test_tregex.py" = [
"F841", # Local variable assigned to but never used
]
[tool.ruff.lint.flake8-type-checking]
# Add quotes around type annotations, if doing so would allow
# an import to be moved into a type-checking block.
quote-annotations = true
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.pyright]
reportIncompatibleMethodOverride = false
reportOptionalMemberAccess = false
reportGeneralTypeIssues = false
reportUnusedFunction = false