-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathruff.toml
105 lines (100 loc) · 2.01 KB
/
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
line-length = 100
[lint]
select = [
# builtins
"A",
# annotations
"ANN",
# unused arguments
"ARG",
# async
"ASYNC",
# flake8-bugbear
"B",
# blind except
"BLE",
# comprehensions
"C4",
# pydocstyle
"D",
# datetimez
"DTZ",
# pycodestyle
"E",
# eradicate
"ERA",
# Pyflakes
"F",
# refurb
"FURB",
# isort
"I",
# pep8 naming
"N",
# use pathlib
"PTH",
# pie
"PIE",
# pytest style
"PT",
# Pylint
# - Convention
"PLC",
# - Error
"PLE",
# - Refactor
"PLR",
# - Warning
"PLW",
# quotes
"Q",
# return
"RET",
# ruff specific rules
"RUF",
# bandit
"S",
# self
"SLF",
# simplify
"SIM",
# slots
"SLOT",
# type check
"TCH",
# tidy imports
"TID",
# todos
"TD",
# pyupgrade
"UP",
# warning
"W",
]
ignore = [
"ANN101", # Missing type annotation for self in method
"ANN102", # Missing type annotation for cls in classmethod
"ANN204", # Missing return type annotation for special method `__init__`
"D100", # Missing docstring in public module
"PLR0913", # Too many arguments in function definition
"SIM910", # Use dict.get("key") instead of dict.get("key", None)
]
[lint.pydocstyle]
convention = "numpy"
[lint.per-file-ignores]
"tests/*" = [
"D103", # Missing docstring in public function
"ANN201", # Missing return type annotation for public function
"S101", # Use of assert detected
"S105", # Possible hardcoded password assigned to...
"S106", # Possible hardcoded password assigned to argument...
"PLR2004", # Magic value used in comparison
"PLR0911", # Too many return statements
"PLR0913", # Too many arguments in function definition
]
"__init__.py" = [
"D104", # Missing docstring in public package
]
[lint.flake8-annotations]
# Do not require functions without return statements to type hint "-> None"
suppress-none-returning = true