Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
92 lines (84 loc) · 2.49 KB
/
Copy pathpyproject.toml
File metadata and controls
92 lines (84 loc) · 2.49 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
90
91
92
# Development tools only: these dotfiles are not an installable Python package.
# Runtime commands must not depend on this checkout's .venv.
[project]
name = "dotfiles-dev"
version = "0.0.0"
requires-python = ">=3.10"
[tool.uv]
package = false
[dependency-groups]
dev = [
"pyright==1.1.414",
"ruff==0.16.7",
]
[tool.ruff]
line-length = 88
# Keep Python formatting aligned with .editorconfig.
indent-width = 2
target-version = "py39"
fix = false
unsafe-fixes = false
force-exclude = true
extend-exclude = [".scratch"]
# Ruff does not discover extensionless Python commands by suffix.
include = [
"scripts/**/*.py",
"tmux/**/*.py",
"tests/**/*.py",
"scripts/binunicode",
"scripts/bq",
"scripts/clear_sannux_transients",
"scripts/genimage-server",
"scripts/password_generator",
"scripts/termbench",
]
[tool.ruff.per-file-target-version]
# Match explicit interpreter requirements, not the developer's current Python.
"scripts/binunicode" = "py314"
"scripts/password_generator" = "py314"
"scripts/termbench" = "py314"
"scripts/zsh_history_sync.py" = "py314"
# bq evaluates PEP 604 union annotations at runtime.
"scripts/bq" = "py310"
[tool.ruff.lint]
# Match the owner's loudterm lint policy; review diagnostics without bulk fixes.
select = ["ALL"]
# COM812 conflicts with Ruff's formatter.
ignore = ["COM812", "D", "T201"]
[tool.ruff.lint.per-file-ignores]
# Preserve the unittest style used by this repository.
"tests/**/*.py" = ["ANN201", "PT009", "PT027", "S101"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "lf"
[tool.pyright]
typeCheckingMode = "strict"
useLibraryCodeForTypes = true
reportMissingImports = true
reportMissingTypeStubs = false
pythonVersion = "3.9"
venvPath = "."
venv = ".venv"
include = [
"scripts",
"tmux",
"tests",
"scripts/binunicode",
"scripts/bq",
"scripts/clear_sannux_transients",
"scripts/genimage-server",
"scripts/password_generator",
"scripts/termbench",
]
exclude = ["**/__pycache__", "**/.venv", ".scratch"]
# File-specific environments precede the conservative fallback. This preserves
# useful diagnostics without pretending every deployed host runs Python 3.14.
executionEnvironments = [
{ root = "scripts/binunicode", pythonVersion = "3.14" },
{ root = "scripts/password_generator", pythonVersion = "3.14" },
{ root = "scripts/termbench", pythonVersion = "3.14" },
{ root = "scripts/zsh_history_sync.py", pythonVersion = "3.14" },
{ root = "scripts/bq", pythonVersion = "3.10" },
{ root = ".", pythonVersion = "3.9" },
]