-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathruff.toml
48 lines (40 loc) · 1.28 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
target-version = "py311"
line-length = 100
exclude = [
".tox",
".git",
"venv",
"notebooks",
]
# Apply fixes automatically
fix = true
[format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
# By default, Ruff enables Flake8's F rules, along with a subset of the E rules,
# omitting any stylistic rules that overlap with the use of a formatter, like ruff format or Black.
# For more details see https://docs.astral.sh/ruff/rules/
[lint]
exclude = ["*.ipynb"]
select = [
"E", # pycodestyl
"F", # Pyflakes
"I", # isort
]
extend-select = [
"UP", # pyupgrade
"D", # pydocstyle
]
# as long as we have interrogate we don't require docstring everywhere
# more details can be found here https://docs.astral.sh/ruff/rules/#pydocstyle-d
ignore = ["D100", "D101", "D102", "D103", "D104", "D105", "D106", "D107", "D205", "D415"]
# Only allow autofix for these import-related and docstring rules
fixable = ["F401", "F403", "I001", "D411", "D415", "D208", "D209", "D202"]
[lint.pydocstyle]
convention = "google"