forked from tmck-code/yet-another-statusline
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
87 lines (74 loc) · 1.95 KB
/
Copy pathpyproject.toml
File metadata and controls
87 lines (74 loc) · 1.95 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
[project]
name = "claude-code-config"
version = "0.1.0"
description = "My Claude Code config"
readme = "README.md"
requires-python = ">=3.14"
dependencies = []
[dependency-groups]
dev = [
"mypy",
"pytest",
"ruff",
"uv",
]
[tool.mypy]
exclude = [
".claude/",
".venv/",
"claude/",
"openspec/",
]
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]
# Exclude a variety of commonly ignored directories.
exclude = [
".claude/",
".git",
".ruff_cache",
".venv",
"claude/",
"openspec/",
]
line-length = 140
indent-width = 4
target-version = "py312"
[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"