-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
74 lines (65 loc) · 1.9 KB
/
Copy pathpyproject.toml
File metadata and controls
74 lines (65 loc) · 1.9 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
[project]
name = "cpython-docs-compendium"
version = "2026.06.20"
authors = [
{ name = "Bradley Reynolds", email = "bradley.reynolds@tailstory.dev" },
]
requires-python = ">=3.14"
dependencies = [
"sphobjinv>=2.4",
]
[dependency-groups]
dev = [
# DX
"nox>=2026.4.10",
"prek>=0.4.5",
# Linters
"ruff>=0.15.20",
"mypy>=2.1.0",
"ty>=0.0.55",
]
[tool.uv]
# Sync with Dependabot's uv version
required-version = ">=0.11.8"
exclude-newer = "P7D"
[tool.ruff]
line-length = 120
cache-dir = ".cache/ruff"
[tool.ruff.lint]
select = [
"ALL",
]
ignore = [
"COM812", # conflicts with the formatter
"ISC001", # conflicts with the formatter
# No `from __future__ import annotations`, so annotation imports are evaluated at
# runtime and cannot move into a TYPE_CHECKING block.
"TC001",
"TC002",
"TC003",
]
[tool.ruff.lint.per-file-ignores]
"tools/*.py" = [
"T201", # CLI tools: the printed report is the deliverable
"FBT", # internal recursion helpers; keyword-only bools add churn, not safety
"PLR0913", # record/report builders take one parameter per output column by design
]
# stdlib_introspect runs across the whole introspect matrix (older interpreters
# included), so it keeps back-compatible idioms: TypeAlias over the newer `type`
# statement (UP040). It also imports arbitrary modules, where a broad except is
# intentional (BLE001).
"tools/stdlib_introspect.py" = ["BLE001", "UP040"]
"tools/coverage_diff.py" = ["S310"] # fetches a fixed https://docs.python.org inventory URL
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.mypy]
pretty = true
num_workers = 4
native_parser = true # required by num_workers
cache_dir = ".cache/mypy"
[[tool.mypy.overrides]]
module = ["sphobjinv.*"]
ignore_missing_imports = true # sphobjinv ships no py.typed marker
# Still need to tell Mypy to ignore these
[tool.ty.rules]
unused-ignore-comment = "ignore"