-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
36 lines (31 loc) · 749 Bytes
/
pyproject.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
[tool.black]
line-length = 120
[tool.ruff]
line-length = 120
# Enable import sorting
select = ["I"]
[tool.ruff.lint]
extend-select = [
"B",
"C4",
"PT",
"RET",
"SIM",
"ARG",
"PTH",
"RUF",
"PLE",
"ANN",
"RUF",
"I" # Add 'I' to extend-select to activate import sorting
]
[tool.ruff.lint.extend-per-file-ignores]
"*.ipynb" = [
"PLE1142", # await-outside-async: Jupyter Notebooks support top level await
"E402", # module-import-not-at-top-of-file: It's relatively common to have to import "just in time"
"E501", # line-too-long: Let black handle this
]
# isort configuration
[tool.isort]
profile = "black" # Use the same line length and styling as Black
line_length = 120 # Consistent line length with Ruff and Black