-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
81 lines (71 loc) · 1.44 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
[build-system]
requires = ["maturin>=1.7,<2.0"]
build-backend = "maturin"
[project]
name = "century_ring"
requires-python = ">=3.12"
classifiers = [
"Programming Language :: Rust",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
readme = "README.rst"
license = "LGPL-3.0-or-later"
dynamic = ["version"]
dependencies = ["attrs>=24.1.0"]
[tool.pdm.dev-dependencies]
dev = [
"ruff>=0.6.9",
"pyright>=1.1.384",
"pytest>=8.3.3",
"pytest-cov>=5.0.0",
]
[tool.maturin]
features = ["pyo3/extension-module"]
python-source = "pysrc"
module-name = "century_ring._century_ring"
[tool.pyright]
pythonVersion = "3.12"
include = ["pysrc"]
typeCheckingMode = "strict"
reportImplicitOverride = "warning"
reportUnusedVariable = false
reportIncompatibleVariableOverride = false
reportPrivateUsage = false
[tool.ruff]
target-version = "py312"
respect-gitignore = true
# fix = true
src = ["pysrc/"]
line-length = 100
output-format = "full"
[tool.ruff.lint]
select = [
"RUF",
"F",
"E",
"W",
"I",
"UP",
"B",
"Q",
"YTT",
"PYI",
"SIM",
"RET",
"PERF",
"PIE",
"SIM",
"C4",
# specific docstring rules
"D201", "D204", "D211", "D419", # less ugly docstrings
]
ignore = [
"W291",
"W293",
"PYI021",
]
[tool.ruff.lint.per-file-ignores]
"tests/test_*" = ["D"]
[tool.ruff.lint.isort]
combine-as-imports = true