-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpyproject.toml
More file actions
90 lines (77 loc) · 1.96 KB
/
pyproject.toml
File metadata and controls
90 lines (77 loc) · 1.96 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
[build-system]
requires = ["maturin>=1.4.0,<2"]
build-backend = "maturin"
[project]
name = "starlark-pyo3"
version = "2025.2.5"
description = "Wraps starlark-rust into Python"
readme = "README.rst"
requires-python = ">=3.9"
license = {file = "LICENSE"}
authors = [
{ name = "Andreas Kloeckner", email = "inform@tiker.net" }
]
classifiers = [
"Programming Language :: Rust",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"typing-extensions>=4.5",
]
[project.urls]
repository = "https://github.com/inducer/starlark-pyo3"
documentation = "https://documen.tician.de/starlark-pyo3/"
[tool.ruff]
preview = true
[tool.ruff.lint.per-file-ignores]
"test/test_*.py" = ["S102"]
"doc/conf.py" = ["S102"]
"starlark.pyi" = ["PYI052"]
[tool.ruff.lint]
extend-select = [
"B", # flake8-bugbear
"C", # flake8-comprehensions
"E", # pycodestyle
"F", # pyflakes
"G", # flake8-logging-format
"I", # flake8-isort
"N", # pep8-naming
"NPY", # numpy
"Q", # flake8-quotes
"UP", # pyupgrade
"RUF", # ruff
"W", # pycodestyle
]
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"
inline-quotes = "double"
multiline-quotes = "double"
[tool.ruff.lint.isort]
combine-as-imports = true
known-local-folder = [
"starlark",
]
lines-after-imports = 2
[tool.basedpyright]
reportImplicitStringConcatenation = "none"
reportUnnecessaryIsInstance = "none"
reportUnusedCallResult = "none"
reportExplicitAny = "none"
reportUnreachable = "hint"
exclude = [
"doc",
"build",
".env",
"venv",
]
# This reports even cycles that are qualified by 'if TYPE_CHECKING'. Not what
# we care about at this moment.
# https://github.com/microsoft/pyright/issues/746
reportImportCycles = "none"
pythonVersion = "3.9"
pythonPlatform = "All"
[tool.typos.default]
extend-ignore-re = [
"(?Rm)^.*(#|//)\\s*spellchecker:\\s*disable-line$"
]