-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathruff.toml
More file actions
35 lines (32 loc) · 1.08 KB
/
ruff.toml
File metadata and controls
35 lines (32 loc) · 1.08 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
# Ruff configuration for chuk-ai-session-manager
line-length = 120
target-version = "py311"
extend-exclude = ["debug", "examples"]
[lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ARG", # flake8-unused-arguments
"SIM", # flake8-simplify
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults
"B904", # raise ... from ... in exception handlers
"UP042", # str(Enum) -> StrEnum (intentional for Pydantic compat)
"SIM105", # contextlib.suppress vs try/except/pass (preference)
]
[lint.per-file-ignores]
"**/__init__.py" = ["E402", "F401"] # Allow late imports and re-exports
"tests/**/*" = ["ARG", "S101"] # Allow unused arguments and asserts in tests
"examples/**/*" = ["ARG"] # Allow unused arguments in examples
[format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"