-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.ruff.toml
More file actions
40 lines (35 loc) · 836 Bytes
/
.ruff.toml
File metadata and controls
40 lines (35 loc) · 836 Bytes
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
# Ruff configuration for httpmorph
# This file provides IDE-friendly ruff settings
line-length = 100
target-version = "py38"
fix = true
# Exclude vendor directory
exclude = [
"vendor/",
".venv/",
"build/",
"dist/",
]
[lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # function calls in argument defaults
"C901", # too complex
]
[format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[lint.per-file-ignores]
"tests/*" = ["B", "F401", "F811"] # Allow unused imports and redefinitions in tests
"benchmarks/*" = ["B"]