-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
85 lines (79 loc) · 2.25 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
[build-system]
requires = ["maturin>=1.5,<2.0"]
build-backend = "maturin"
[project]
name = "sas-lexer"
version = "1.0.0-beta.2"
description = "Ultra fast correct context-aware \"parsing\" SAS code lexer"
readme = "README.md"
requires-python = ">=3.10, <3.13"
license = "AGPL-3.0-or-later"
authors = [{ name = "Mike Perlov", email = "[email protected]" }]
urls = { homepage = "https://github.com/mishamsk/sas-lexer", repository = "https://github.com/mishamsk/sas-lexer", Issues = "https://github.com/mishamsk/sas-lexer/issues" }
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Rust",
"Topic :: Software Development :: Compilers",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Libraries",
"Typing :: Typed",
]
dependencies = ["msgspec>=0.18.0"]
[dependency-groups]
dev = [
"mypy[faster-cache]>=1.13.0",
"pre-commit>=4.0.1",
"pycases>=0.1.3",
"pytest>=8.3.3",
"ruff>=0.6.9",
"uv>=0.4.29",
]
[tool.maturin]
manifest-path = "crates/sas-lexer-py/Cargo.toml"
module-name = "sas_lexer._sas_lexer_rust"
python-source = "src"
strip = true
profile = "release"
features = ["pyo3/extension-module"]
include = [{ path = "LICENSE", format = "sdist" }]
exclude = [
{ path = "Cargo.lock", format = "sdist" },
{ path = "Cargo.toml", format = "sdist" },
]
[tool.uv]
cache-keys = [{ file = "crates/sas-lexer-py/Cargo.toml" }]
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = [
"A",
"ARG",
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"FBT",
"I", # isort
"B", # bugbear
"N",
"PERF",
"SLF",
"PTH",
"TCH",
"PLC",
"PLE",
"PLR",
"PLW",
"RUF",
]
ignore = [
"E501", # line too long, handled by ruff format
"PLC0105", # We are ok with TypeVars without variance in name
]