forked from HULKs/hulk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruff.toml
64 lines (62 loc) · 881 Bytes
/
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
64
line-length = 80
fix = true
exclude = ["typings/"]
[lint]
select = [
# flake8-2020
"YTT",
# flake8-bandit
"S",
# flake8-bugbear
"B",
# flake8-builtins
"A",
# flake8-annotations
"ANN",
# flake8-unused-arguments
"ARG",
# numpy-specific-rules
"NPY",
# flake8-comprehensions
"C4",
# flake8-return
"RET",
# flake8-commas
"COM",
# flake8-boolean-trap
"FBT",
# flake8-debugger
"T10",
# flake8-simplify
"SIM",
# isort
"I",
# mccabe
"C90",
# pycodestyle
"E",
"W",
# pyflakes
"F",
# pygrep-hooks
"PGH",
# pyupgrade
"UP",
# ruff
"RUF",
# tryceratops
"TRY",
]
ignore = [
# DoNotAssignLambda
"E731",
# any-type
"ANN401",
# flake8-trailing-comma (handled by formatter)
"COM812",
]
[lint.per-file-ignores]
"tests/*" = ["S101", "S603"]
"**/test_*.py" = [
"S101", # asserts allowed in tests...
]