-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpyproject.toml
45 lines (39 loc) · 1.19 KB
/
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
37
38
39
40
41
42
43
44
45
[tool.ruff]
target-version = "py38"
line-length = 90
# See https://github.com/charliermarsh/ruff#rules for error code definitions.
[tool.ruff.lint]
select = [
# "ANN", # annotations
"B", # bugbear
"C", # comprehensions
"E", # style errors
"F", # flakes
"I", # import sorting
"RUF", # ruff specific rules
"UP", # upgrade
"W", # style warnings
"YTT", # sys.version
"ISC002",
"NPY201",
"TID251"
]
ignore = [
"C901", # Comprehension is too complex (11 > 10)
"N802", # Function name should be lowercase
"N806", # Variable in function should be lowercase
"E501", # Line too long ({width} > {limit} characters)
"B904", # raise ... from err
"B905", # zip() without an explicit strict= parameter
"RUF005", # recommends non-type-aware expansion
"UP008",
]
# don't allow implicit string concatenation
flake8-implicit-str-concat = {"allow-multiline" = false}
[tool.ruff.lint.isort]
force-single-line = true
force-sort-within-sections = true
order-by-type = false
[tool.ruff.lint.flake8-tidy-imports.banned-api]
"IPython.embed".msg = "you forgot to remove a debug embed ;)"
"numpy.empty".msg = "uninitialized arrays are haunted try numpy.zeros"