forked from Eventual-Inc/Daft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ruff.toml
34 lines (31 loc) · 969 Bytes
/
.ruff.toml
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
fix = true
indent-width = 4
line-length = 120
target-version = "py38"
[format]
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
[lint]
exclude = ["daft/pickle/cloudpickle.py", "daft/pickle/cloudpickle_fast.py", "daft/pickle/compat.py"]
extend-select = [
"UP", # pyupgrade
"LOG", # flake8-logging
"G", # flake8-logging-format
"I", # isort
"RUF100", # unused-noqa"
"T10" # flake8-debugger
]
ignore = [
"E402" # Module level import not at top of file [TODO(sammy): We want to fix this]
]
[lint.per-file-ignores]
# Do not enforce usage and import order rules in init files
"__init__.py" = ["E402", "F401", "I"]
# Allow wild imports in conftest
"tests/conftest.py" = ["F405", "E402", "F403"]