-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
nightly_ruff.toml
207 lines (190 loc) · 7.25 KB
/
nightly_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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
# This file contains the ruff hook rules when pre-commit is run with the --all flag
select = [
"B002", # unary-prefix-increment
"B003", # assignment-to-os-environ
"B004", # unreliable-callable-check
"B013", # redundant-tuple-in-exception-handler
"B014", # duplicate-handler-exception
"B016", # cannot-raise-literal
"B021", # f-string-docstring
"B022", # useless-contextlib-suppress
"B025", # duplicate-try-block-exception
"B028", # no-explicit-stacklevel
"B029", # except-with-empty-tuple
"B030", # except-with-non-exception-classes
"B031", # reuse-of-groupby-generator
"C406", # unnecessary-literal-dict
"C410", # unnecessary-literal-within-list-call
"C415", # unnecessary-subscript-reversal
"E101", # mixed-spaces-and-tabs
"E401", # multiple-imports-on-one-line
"E501", # line-too-long
"E701", # multiple-statements-on-one-line-colon
"E702", # multiple-statements-on-one-line-semicolon
"E703", # useless-semicolon
"E711", # none-comparison
"E712", # true-false-comparison
"E721", # type-comparison
"E722", # bare-except
"E731", # lambda-assignment
"E741", # ambiguous-variable-name
"E742", # ambiguous-class-name
"E743", # ambiguous-function-name
"E902", # io-error
"E999", # syntax-error
"F402", # import-shadowed-by-loop-var
"F404", # late-future-import
"F406", # undefined-local-with-nested-import-star-usage
"F407", # future-feature-not-defined
"F501", # percent-format-invalid-format
"F502", # percent-format-expected-mapping
"F503", # percent-format-expected-sequence
"F504", # percent-format-extra-named-arguments
"F505", # percent-format-missing-argument
"F506", # percent-format-mixed-positional-and-named
"F507", # percent-format-positional-count-mismatch
"F508", # percent-format-star-requires-sequence
"F509", # percent-format-unsupported-format-character
"F521", # string-dot-format-invalid-format
"F522", # string-dot-format-extra-named-arguments
"F523", # string-dot-format-extra-positional-arguments
"F524", # string-dot-format-missing-arguments
"F525", # string-dot-format-mixing-automatic
"F541", # f-string-missing-placeholders
"F601", # multi-value-repeated-key-literal
"F602", # multi-value-repeated-key-variable
"F621", # expressions-in-star-assignment
"F622", # multiple-starred-expressions
"F631", # assert-tuple
"F632", # is-literal
"F633", # invalid-print-syntax
"F634", # if-tuple
"F701", # break-outside-loop
"F702", # continue-outside-loop
"F704", # yield-outside-function
"F706", # return-outside-function
"F707", # default-except-not-last
"F722", # forward-annotation-syntax-error
"F811", # redefined-while-unused
"F821", # undefined-name
"F822", # undefined-export
"F823", # undefined-local
"F841", # unused-variable
"F842", # unused-annotation
"F901", # raise-not-implemented
"G010", # logging-warn
"G101", # logging-extra-attr-clash
"G201", # logging-exc-info
"G202", # logging-redundant-exc-info
"N804", # invalid-first-argument-name-for-class-method
"N807", # dunder-function-name
"PD007", # pandas-use-of-dot-ix
"PD008", # pandas-use-of-dot-at
"PD009", # pandas-use-of-dot-iat
"PD010", # pandas-use-of-dot-pivot-or-unstack
"PD012", # pandas-use-of-dot-read-table
"PD013", # pandas-use-of-dot-stack
"PD015", # pandas-use-of-pd-merge
"PGH002", # deprecated-log-warn
"PIE807", # reimplemented-list-builtin
"PLC3002", # unnecessary-direct-lambda-call
"PLE0100", # yield-in-init
"PLE0101", # return-in-init
"PLE0116", # continue-in-finally
"PLE0117", # nonlocal-without-binding
"PLE0118", # load-before-global-declaration
"PLE0302", # unexpected-special-method-signature
"PLE0604", # invalid-all-object
"PLE0605", # invalid-all-format
"PLE1142", # await-outside-async
"PLE1205", # logging-too-many-args
"PLE1206", # logging-too-few-args
"PLE1307", # bad-string-format-type
"PLE1310", # bad-str-strip-call
"PLE1507", # invalid-envvar-value
"PLE2502", # bidirectional-unicode
"PLE2510", # invalid-character-backspace
"PLE2512", # invalid-character-sub
"PLE2513", # invalid-character-esc
"PLE2514", # invalid-character-nul
"PLE2515", # invalid-character-zero-width-space
"PLR0206", # property-with-parameters
"PLR1722", # sys-exit-alias
"PLW0711", # binary-op-exception
"PLW1508", # invalid-envvar-default
"PT010", # pytest-raises-without-exception
"PT024", # pytest-unnecessary-asyncio-mark-on-fixture
"PT025", # pytest-erroneous-use-fixtures-on-fixture
"PT026", # pytest-use-fixtures-without-parameters
"PTH105", # pathlib-replace
"PTH106", # os-rmdir
"PTH114", # os-path-islink
"PTH115", # os-readlink
"PTH116", # os-stat
"PTH117", # os-path-isabs
"PTH121", # os-path-samefile
"PTH124", # py-path
"RUF006", # asyncio-dangling-task
"RUF007", # pairwise-over-zipped
"RUF008", # mutable-dataclass-default
"RUF009", # function-call-in-dataclass-default-argument
"S103", # bad-file-permissions
"S302", # suspicious-marshal-usage
"S306", # suspicious-mktemp-usage
"S307", # suspicious-eval-usage
"S312", # suspicious-telnet-usage
"S313", # suspicious-xmlc-element-tree-usage
"S315", # suspicious-xml-expat-reader-usage
"S316", # suspicious-xml-expat-builder-usage
"S317", # suspicious-xml-sax-usage
"S319", # suspicious-xml-pull-dom-usage
"S321", # suspicious-ftp-lib-usage
"S323", # suspicious-unverified-context-usage
"S506", # unsafe-yaml-load
"S508", # snmp-insecure-version
"S509", # snmp-weak-cryptography
"S602", # subprocess-popen-with-shell-equals-true
"S604", # call-with-shell-equals-true
"S605", # start-process-with-a-shell
"S606", # start-process-with-no-shell
"S612", # logging-config-insecure-listen
"S701", # jinja2-autoescape-false
"SIM202", # negate-not-equal-op
"SIM208", # double-negation
"SIM220", # expr-and-not-expr
"SIM221", # expr-or-not-expr
"SIM223", # expr-and-false
"SIM910", # dict-get-with-none-default
"T203", # p-print
"UP001", # useless-metaclass-type
"UP003", # type-of-primitive
"UP005", # deprecated-unittest-alias
"UP013", # convert-typed-dict-functional-to-class
"UP017", # datetime-timezone-utc
"UP021", # replace-universal-newlines
"UP027", # unpacked-list-comprehension
"UP029", # unnecessary-builtin-import
"UP033", # lru-cache-with-maxsize-none
"UP037", # quoted-annotation
"W291", # trailing-whitespace
"YTT101", # sys-version-slice3
"YTT102", # sys-version2
"YTT103", # sys-version-cmp-str3
"YTT201", # sys-version-info0-eq3
"YTT202", # six-py3
"YTT203", # sys-version-info1-cmp-int
"YTT204", # sys-version-info-minor-cmp-int
"YTT301", # sys-version0
"YTT302", # sys-version-cmp-str10
"YTT303", # sys-version-slice1
"TID252", # relative-imports
]
line-length = 130
[per-file-ignores]
".vulture_whitelist.py" = [
"F821", # undefined-name
]
"**/test_data/*" = ["E501"] # line-too-long
"**/TestData/*" = ["E501"] # line-too-long
"**/TestInput/*" = ["E501"] # line-too-long
"**/TestsInput/*" = ["E501"] # line-too-long