-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
160 lines (142 loc) · 4.33 KB
/
Copy pathpyproject.toml
File metadata and controls
160 lines (142 loc) · 4.33 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
[project]
name = "dotfiles"
version = "0.0.0"
requires-python = ">=3.14"
dependencies = [
"termbud",
"jules-cli",
"transcribe",
"termtext",
"termstatus",
"skill-filter",
"sandboxr",
"browser-sync",
]
[dependency-groups]
dev = [
"pytest>=8",
"pytest-asyncio>=0.25",
"ruff>=0.15.12",
"ty>=0.0.34",
"pytest-testinfra>=10",
"pytest-cov>=7.1.0",
]
[tool.uv]
python-preference = "only-managed"
[tool.uv.workspace]
members = [
"src/python/browser_sync",
"src/python/termbud",
"src/python/jules_cli",
"src/python/termstatus",
"src/python/transcribe",
"src/python/termtext",
"src/python/skill_filter",
"src/python/sandboxr",
]
[tool.uv.sources]
browser-sync = { workspace = true }
termbud = { workspace = true }
jules-cli = { workspace = true }
transcribe = { workspace = true }
termtext = { workspace = true }
termstatus = { workspace = true }
skill-filter = { workspace = true }
sandboxr = { workspace = true }
[tool.ruff]
line-length = 120
target-version = "py314"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"UP", # pyupgrade
"N", # pep8-naming
"C90", # mccabe
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
"RET", # flake8-return
"PIE", # flake8-pie
"ISC", # flake8-implicit-str-concat
"RUF", # Ruff-specific rules
"PL", # Pylint
"PERF", # Perflint
"TID", # flake8-tidy-imports
"PYI", # flake8-pyi
"ARG", # flake8-unused-arguments
"PTH", # flake8-use-pathlib
"TD", # flake8-todos
"S", # flake8-bandit
"ANN", # flake8-annotations
"D", # pydocstyle
]
ignore = [
"UP043", # Unnecessary default type arguments
"PLR2004", # Magic value used in comparison
"PLR0912", # Too many branches
"PLR0913", # Too many arguments
"PLR0915", # Too many statements
"D100", # Missing docstring in public module
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic method
"D107", # Missing docstring in __init__
"D203", # 1 blank line required before class docstring
"D212", # Multi-line docstring summary should start at the first line
"ANN002", # Missing type annotation for *args
"ANN003", # Missing type annotation for **kwargs
"S101", # Use of `assert` detected
"S105", # Possible hardcoded password
"TD002", # Missing author in TODO
"TD003", # Missing issue link on the line following this TODO
"TD004", # Missing colon in TODO
"PTH123", # `open()` should be replaced by `Path.open()`
"D101", # Missing docstring in public class
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"D106", # Missing docstring in public nested class
"D200", # One-line docstring should fit on one line
"S603", # subprocess untrusted
"S607", # subprocess partial path
"S701", # jinja2 autoescape
"ANN201", # missing return type public function
"ANN202", # missing return type private function
"ANN204", # missing return type special method
"ANN401", # Any disallowed
"ANN001", # missing type annotation for function argument
"PTH107", # os.remove
"PTH110", # os.path.exists
"PTH118", # os.path.join
"ARG001", # Unused function argument
"D205", # 1 blank line required between summary line and description
"D417", # Missing argument descriptions in the docstring
"PTH109", # os.getcwd
"PTH111", # os.path.expanduser
"E501", # Line too long
]
[tool.ruff.lint.flake8-bugbear]
extend-immutable-calls = ["typer.Option", "typer.Argument"]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.mccabe]
max-complexity = 15
[tool.ruff.lint.isort]
known-first-party = ["browser_sync", "termbud", "jules_cli", "termstatus", "transcribe", "termtext", "skill_filter", "sandboxr"]
[tool.ty.src]
include = [
"src/python",
"src/chezmoi",
".claude/hooks",
]
[tool.ty.rules]
all = "error"
[tool.pytest.ini_options]
asyncio_mode = "auto"
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["D", "ANN", "ARG", "S", "PTH"]
"src/**/tests/**/*.py" = ["D", "ANN", "ARG", "S", "PTH"]
"src/**/conftest.py" = ["D", "ANN", "ARG", "S", "PTH"]