-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ruff.toml
63 lines (59 loc) · 1.27 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
59
60
61
62
63
exclude = [
".env,",
".git",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pyenv",
".pytest_cache",
".ruff_cache",
"venv",
".venv",
".vscode",
]
line-length = 88
indent-width = 4
target-version = "py311"
[lint]
preview = true
extend-select = [
"E305", # 2 blank lines before class or function
]
select = [
"ARG", # unused arguments
"B", # flake8-bugbear
"E", # pycodestyle
"E303", # too many blank lines
"E722", # bare except statements
"F", # pyflakes
"F401", # remove unused imports
"I", # isort
"N", # pep8-naming
"RUF", # ruff
"SIM", # flake8-simplify
"UP", # pyupgrade
"W", # pycodestyle
"W291", # trailing whitespace
"W293", # blank line contains whitespace
"F821", # undefined name
]
fixable = ["ALL"]
ignore = [
"UP006",
"UP007",
"UP035",
]
unfixable = []
[lint.isort]
known-third-party = ["readmeai"]
relative-imports-order = "closest-to-furthest"
split-on-trailing-comma=true
[lint.pydocstyle]
convention = "numpy"
[format]
docstring-code-format = true
docstring-code-line-length = 88
indent-style = "space"
line-ending = "auto"
preview = true
quote-style = "double"