-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathruff.toml
More file actions
41 lines (33 loc) · 1.04 KB
/
ruff.toml
File metadata and controls
41 lines (33 loc) · 1.04 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
# Ruff configuration for gridappsd-python
# https://docs.astral.sh/ruff/
line-length = 120
[lint]
# Rules to enable
select = [
"E", # pycodestyle errors
"F", # pyflakes
"W", # pycodestyle warnings
]
# Rules to ignore for legacy code compatibility
ignore = [
"E101", # Mixed spaces and tabs (some files have this in multiline strings)
"E402", # Module level import not at top of file
"E501", # Line too long (legacy code has long strings/docstrings)
"E722", # Do not use bare `except`
"F401", # Imported but unused (needed for re-exports in __init__.py)
"F811", # Redefinition of unused name
"F821", # Undefined name (some legacy code patterns)
]
# Allow fix for all enabled rules (when `--fix`) is provided
fixable = ["ALL"]
unfixable = []
[lint.per-file-ignores]
# Allow unused imports in __init__.py files (re-exports)
"__init__.py" = ["F401"]
[format]
# Use double quotes for strings
quote-style = "double"
# Indent with spaces
indent-style = "space"
# Unix-style line endings
line-ending = "auto"