-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathpyproject.toml
More file actions
67 lines (56 loc) · 1.65 KB
/
pyproject.toml
File metadata and controls
67 lines (56 loc) · 1.65 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
[project]
name = "hal-9000"
version = "2001"
description = "Opinionated macOS development environment automation"
authors = [{ name = "Vinta Chen", email = "vinta.chen@gmail.com" }]
readme = "README.md"
license = "MIT"
requires-python = ">=3.13"
dependencies = []
[project.urls]
Homepage = "https://vinta.ws/code/"
Repository = "https://github.com/vinta/hal-9000"
[dependency-groups]
test = ["pytest>=9.0.2"]
lint = ["ansible-lint>=26.1.1", "ruff>=0.15.2", "ty>=0.0.18"]
audit = ["detect-secrets>=1.5.0", "pip-audit>=2.10.0", "pre-commit>=4.5.1"]
dev = [
{ include-group = "test" },
{ include-group = "lint" },
{ include-group = "audit" },
"argcomplete>=3.6.3",
]
[tool.uv]
default-groups = ["dev"]
[tool.ruff]
line-length = 200
extend-include = ["bin/hal"]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"D", # pydocstyle
"COM812", # trailing comma (formatter conflict)
"ISC001", # string concat (formatter conflict)
"INP001", # implicit namespace package (no packages, all scripts)
"T20", # print statements (CLI tools)
]
[tool.ruff.lint.per-file-ignores]
"tests/**" = [
"ANN", # type annotations not needed in tests
"S101", # assert is the standard for pytest
"SLF001", # testing private methods is intentional
"PLR2004", # magic values are clear in test assertions
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
docstring-code-format = true
[tool.ruff.lint.pycodestyle]
max-line-length = 200
[tool.ty.src]
include = ["scripts", "dotfiles/.claude/statusline"]
[tool.ty.terminal]
error-on-warning = true
[tool.ty.rules]
possibly-unresolved-reference = "error"
unused-ignore-comment = "error"