-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
45 lines (36 loc) · 942 Bytes
/
ruff.toml
File metadata and controls
45 lines (36 loc) · 942 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
42
43
44
45
line-length = 88
[lint]
select = [
"E",# pycodestyle
"F",# Pyflakes
"UP",# pyupgrade
"B",# flake8-bugbear
"SIM",# flake8-simplify
"I",# isort
"NPY", # numpy
"PD", # pandas
"RUF",
# TODO: Fix this and enable ANN
# "ANN", # flake8-annotations: checks for missing type hints
]
ignore = [
# Avoid using the generic variable name `df` for DataFrames.
"PD901",
# Use `key in dict` instead of `key in dict.keys()`
"SIM118",
]
[lint.pydocstyle]
# Use Google-style docstrings.
convention = "google"
[lint.isort]
force-single-line = true
[format]
# Like Black, use double quotes for strings.
quote-style = "double"
docstring-code-format = true
# 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"