-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
41 lines (36 loc) · 933 Bytes
/
ruff.toml
File metadata and controls
41 lines (36 loc) · 933 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
41
extend-exclude = [
"__pycache__",
"docs",
"site",
".eggs",
".git",
".venv",
"build",
"dist",
"notebooks",
".cache",
]
line-length = 120
[lint]
extend-select = [
# Ruff-specific rules
"RUF",
]
select = ["E", "F", "I"]
ignore = [
"E402", # Module level import not at top of file
"E501", # Line too long
"E203", # Whitespace before ':' -> conflicts with black
"D401", # First line should be in imperative mood
"RET504", # Unnecessary variable assignment before return statement
"RET505", # Unnecessary elif after return statement
"SIM102", # Use a single if-statement instead of nested if-statements
"SIM117", # Merge with statements for context managers that have same scope
"SIM118", # Checks for key-existence checks against dict.keys() calls
]
[lint.isort]
known-first-party = ["modern_python", "core"]
[lint.pydocstyle]
convention = "google"
[lint.mccabe]
max-complexity = 30