-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
28 lines (25 loc) · 1015 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
[tool.black]
target-version = ['py311']
extend-exclude = "^venv$"
include = '(\.ipynb$|\.py$)'
line-length = 120
skip-string-normalization = true
[tool.ruff]
line-length = 120
extend-include = ["*.ipynb"]
[tool.ruff.lint]
select = [
"A", # check for python builtins being used as variables or parameters
"C4", # helps writing better list/set/dict comprehensions
"C90", # check McCabe complexity
"CPY", # check for copyright notices in all python files
"I", # check imports
"RUF", # Ruff specific rules
"S", # check for security with Bandit
"SIM", # helps simplifying code
"TID", # helps writing tidier imports
"UP", # check syntax for newer versions of the language
]
[tool.ruff.format]
quote-style = "preserve"
docstring-code-line-length = 76