-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathpyproject.toml
More file actions
97 lines (83 loc) · 2.38 KB
/
Copy pathpyproject.toml
File metadata and controls
97 lines (83 loc) · 2.38 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
[project]
name = "yet-another-statusline"
version = "0.4.8"
description = "Claude Code statusline showing info at a glance: tokens, context, model, subagents, burn rate, skills, plugins, OpenSpec specs, task lists, and more"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"tomli>=2.0; python_version < '3.11'",
]
[dependency-groups]
dev = [
"mypy",
"pytest",
"pytest-xdist",
"ruff",
"uv",
]
[tool.pytest.ini_options]
pythonpath = ["claude"]
[tool.mypy]
exclude = [
".claude/",
".venv/",
"openspec/",
"test/",
"ops/",
]
plugins = []
disallow_untyped_defs = true # no functions without type annotations
warn_return_any = true # warn about functions that return Any
ignore_missing_imports = true # ignore imports that can't be resolved (e.g., third-party libraries without type stubs)
strict = true # enable all strict type-checking options
warn_unused_configs = true
disallow_subclassing_any = true
[tool.ruff]
# Honour `exclude` even when files are passed explicitly on the command line
# (e.g. from the pre-commit hook). Without this, ruff checks any path you name.
force-exclude = true
# Exclude a variety of commonly ignored directories.
exclude = [
".claude/",
".git",
".ruff_cache",
".venv",
"openspec/",
"ops/",
]
line-length = 140
indent-width = 4
target-version = "py310"
[tool.ruff.lint]
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
# McCabe complexity (`C901`) by default.
select = [
"E4", # E subset of the pycodestyle (`E`) codes by default.
"E7",
"E9",
"F", # Enable Pyflakes (`F`)
]
ignore = [
"E401", # multiple imports on one line
"E701", # multiple statements on one line
]
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
# prevents whitespace from being removed
unfixable = [
"E203", # whitespace before ':'
"E401", # multiple imports on one line
"E701", # multiple statements on one line
]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.format]
quote-style = "preserve" # keep existing quote style (single or double)
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
preview = true
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "single"
inline-quotes = "single"
multiline-quotes = "single"