-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
110 lines (91 loc) · 2.48 KB
/
pyproject.toml
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
[project]
name = "pyastgrep"
description = "A search/query tool for Python abstract syntax trees"
license = {text = "MIT"}
authors = [{name = "Luke Plant"}]
keywords = ["xpath xml ast asts syntax query css grep"]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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 :: Developers",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
]
urls = {Homepage = "https://github.com/spookylukey/pyastgrep"}
requires-python = ">=3.9"
dependencies = [
"lxml>=3.3.5",
"elementpath",
"astpretty",
"pathspec",
"cssselect>=1.2",
'backports.strenum; python_version < "3.11"',
"typing-extensions>=4.12.2",
]
dynamic = ["version"]
[project.readme]
file = "README.rst"
content-type = "text/x-rst"
[project.scripts]
pyastgrep = "pyastgrep.cli:main"
pyastdump = "pyastgrep.dump:main"
[build-system]
requires = ["setuptools>=61.2"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
package-dir = {"" = "src"}
include-package-data = false
[tool.setuptools.packages.find]
where = ["src"]
namespaces = false
[tool.setuptools.dynamic]
version = {attr = "pyastgrep.__version__"}
[tool.black]
line-length = 120
# required-version = '22.1.0' # see https://github.com/psf/black/issues/2493
target-version = ['py310']
[tool.isort]
line_length = 120
profile = "black"
multi_line_output = 3
[tool.ruff]
line-length = 120
target-version = 'py38'
select = ["E", "F", "I", "UP", "FLY"]
[tool.mypy]
ignore_missing_imports = true
check_untyped_defs = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
show_error_codes = true
strict = true
exclude = ['dist', 'build']
[[tool.mypy.overrides]]
module = "tests.examples.*"
ignore_errors = true
disallow_untyped_calls = false
disallow_untyped_defs = false
disallow_incomplete_defs = false
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
disallow_incomplete_defs = false
[tool.uv]
dev-dependencies = [
"pre-commit>=3.5.0",
"pyright>=1.1.391",
"pytest>=8.3.3",
"tox-uv>=1.13.1",
"tox>=4.21.2",
"types-lxml>=2024.12.13",
"sphinx>=7.1.2",
"sphinx-rtd-theme>=3.0.2",
]