-
Notifications
You must be signed in to change notification settings - Fork 3
/
.ruff.toml
141 lines (129 loc) · 2.21 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
line-length = 120
target-version = "py39"
[lint]
select = [
# pyflakes
"F",
# pycodestyle
"E",
"W",
# mccabe
"C90",
# isort
"I",
# pydocstyle
"D",
# pyupgrade
"UP",
# pep8-naming
"N",
# flake8-blind-except
"BLE",
# flake8-2020
"YTT",
# flake8-builtins
"A",
# flake8-comprehensions
"C4",
# flake8-debugger
"T10",
# flake8-errmsg
"EM",
# flake8-implicit-str-concat
"ISC",
# flake8-pytest-style
"PT",
# flake8-return
"RET",
# flake8-simplify
"SIM",
# flake8-unused-arguments
"ARG",
# pandas-vet
"PD",
# pygrep-hooks
"PGH",
# flake8-bugbear
"B",
# flake8-quotes
"Q",
# pylint
"PL",
# flake8-pie
"PIE",
# flake8-type-checking
"TCH",
# tryceratops
"TRY",
# flake8-use-pathlib
"PTH",
"RUF",
# Numpy rules
"NPY",
# Implicit namespace packages
"INP",
# No relative imports
"TID252",
# f-strings over string concatenation
"FLY",
# Annotations
# No enforced annotations
# "ANN"
]
ignore = [
# controversial
"B006",
# controversial
"B008",
"B010",
# Magic constants
"PLR2004",
# Strings in error messages
"EM101",
"EM102",
"EM103",
# Exception strings
"TRY003",
# Varaibles before return
"RET504",
# Abstract raise into inner function
"TRY301",
# df as varaible name
"PD901",
# melt over stack
"PD013",
# No Any annotations
"ANN401",
# Self annotation
"ANN101",
# To many arguments
"PLR0913",
# Class attribute shadows builtin
"A003",
# No typing for `cls`
"ANN102",
# Ignore because of formatting
"ISC001",
# Use type-checking block
"TCH001",
"TCH002",
"TCH003",
# No stacklevel
"B028",
# Overwriting loop variable
"PLW2901"
]
exclude = [
"doc/sphinxext/*.py",
"doc/build/*.py",
"doc/temp/*.py",
".eggs/*.py",
"example_data",
]
[lint.per-file-ignores]
# https://github.com/astral-sh/ruff/issues/8925
"examples/**/*.py" = ["D400"]
[lint.pydocstyle]
convention = "numpy"
[format]
docstring-code-format = true