forked from Eventual-Inc/Daft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ruff.toml
58 lines (54 loc) · 1.92 KB
/
.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
fix = true
indent-width = 4
line-length = 120
# TODO: clean up typing code and update to py39
target-version = "py38"
[format]
docstring-code-format = true
# 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
"RUF010", # Use explicit conversion flag
"RUF013", # PEP 484 prohibits implicit Optional
"RUF015", # Prefer next({iterable}) over single element slice
"RUF017", # Avoid quadratic list summation
"RUF022", # __all__ is not sorted
"RUF032", # Decimal() called with float literal argument
"RUF034", # Useless if-else condition
"RUF041", # Unnecessary nested Literal
"RUF100", # unused-noqa"
"T10", # flake8-debugger
"D" # pydocstyle rules
]
ignore = [
"E402", # Module level import not at top of file [TODO(sammy): We want to fix this]
"D417", # requires documentation for every function parameter.
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic method
"D106", # Missing docstring in public nested class
"D107" # Missing docstring in __init__
]
preview = true
[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"]
[lint.pydocstyle]
convention = "google"