-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathruff.toml
More file actions
30 lines (24 loc) · 653 Bytes
/
ruff.toml
File metadata and controls
30 lines (24 loc) · 653 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
extend-include = ["*.ipynb"]
line-length = 88
target-version = "py310"
extend-exclude = ["*.gypi"]
# Enable flake8-bugbear (`B`) rules.
# https://beta.ruff.rs/docs/configuration/#using-rufftoml
[lint]
select = [
"E", # pycodestyle
"F", # pyflake
"B", # flake8-bugbear
"C4", # flake8-comprehensions
# "PERF", # perflint
"UP", # pyupgrade
]
ignore = [
"B904", # check for raise statements in exception handlers that lack a from clause
"B905", # zip() without an explicit strict= parameter
]
[lint.per-file-ignores]
"*.ipynb" = ["E402"]
"__init__.py" = ["F401"]
[lint.pycodestyle]
max-line-length = 120