Commit c5c5ec9
committed
refactor!(ruff): Run all automated fixes as of ruff 0.3.4
ruff check --select ALL . --fix --unsafe-fixes --preview --show-fixes; ruff format .
Fixed 144 errors:
- conftest.py:
2 × I001 (unsorted-imports)
2 × PT003 (pytest-extraneous-scope-function)
1 × PIE790 (unnecessary-placeholder)
1 × TCH005 (empty-type-checking-block)
1 × TCH004 (runtime-import-in-type-checking-block)
- docs/conf.py:
1 × RET505 (superfluous-else-return)
- src/libtmux/_internal/query_list.py:
3 × RSE102 (unnecessary-paren-on-raise-exception)
2 × ANN204 (missing-return-type-special-method)
1 × T201 (print)
1 × PLR5501 (collapsible-else-if)
1 × RET505 (superfluous-else-return)
1 × RET506 (superfluous-else-raise)
1 × F841 (unused-variable)
- src/libtmux/_vendor/version.py:
2 × PLR6201 (literal-membership)
1 × ANN204 (missing-return-type-special-method)
1 × RET505 (superfluous-else-return)
1 × RUF022 (unsorted-dunder-all)
- src/libtmux/common.py:
6 × RET506 (superfluous-else-raise)
1 × RSE102 (unnecessary-paren-on-raise-exception)
1 × TCH005 (empty-type-checking-block)
1 × I001 (unsorted-imports)
- src/libtmux/exc.py:
8 × ANN204 (missing-return-type-special-method)
2 × PIE790 (unnecessary-placeholder)
2 × COM812 (missing-trailing-comma)
2 × E303 (too-many-blank-lines)
- src/libtmux/neo.py:
1 × E303 (too-many-blank-lines)
1 × RET504 (unnecessary-assign)
- src/libtmux/pane.py:
3 × E266 (multiple-leading-hashes-for-block-comment)
2 × COM812 (missing-trailing-comma)
1 × RSE102 (unnecessary-paren-on-raise-exception)
1 × E303 (too-many-blank-lines)
1 × PLR1711 (useless-return)
- src/libtmux/pytest_plugin.py:
3 × PT003 (pytest-extraneous-scope-function)
1 × PT001 (pytest-fixture-incorrect-parentheses-style)
- src/libtmux/server.py:
2 × ISC001 (single-line-implicit-string-concatenation)
2 × RSE102 (unnecessary-paren-on-raise-exception)
2 × COM812 (missing-trailing-comma)
1 × RET505 (superfluous-else-return)
1 × SIM103 (needless-bool)
- src/libtmux/session.py:
5 × COM812 (missing-trailing-comma)
2 × RSE102 (unnecessary-paren-on-raise-exception)
1 × RET506 (superfluous-else-raise)
1 × RET505 (superfluous-else-return)
1 × RET503 (implicit-return)
1 × PLR1711 (useless-return)
1 × E303 (too-many-blank-lines)
- src/libtmux/test.py:
1 × RET506 (superfluous-else-raise)
1 × RSE102 (unnecessary-paren-on-raise-exception)
- src/libtmux/window.py:
4 × COM812 (missing-trailing-comma)
2 × E266 (multiple-leading-hashes-for-block-comment)
1 × RSE102 (unnecessary-paren-on-raise-exception)
1 × E303 (too-many-blank-lines)
1 × PLR6201 (literal-membership)
1 × PLR1711 (useless-return)
- tests/_internal/test_query_list.py:
38 × PT007 (pytest-parametrize-values-wrong-type)
1 × PT006 (pytest-parametrize-names-wrong-type)
- tests/legacy_api/test_session.py:
1 × PT006 (pytest-parametrize-names-wrong-type)
- tests/legacy_api/test_version.py:
1 × PT014 (pytest-duplicate-parametrize-test-cases)
- tests/legacy_api/test_window.py:
1 × COM812 (missing-trailing-comma)
1 × PT006 (pytest-parametrize-names-wrong-type)
- tests/test_dataclasses.py:
1 × COM812 (missing-trailing-comma)
1 × PT001 (pytest-fixture-incorrect-parentheses-style)
- tests/test_session.py:
2 × COM812 (missing-trailing-comma)
- tests/test_version.py:
1 × PT014 (pytest-duplicate-parametrize-test-cases)
- tests/test_window.py:
3 × COM812 (missing-trailing-comma)
1 × PT006 (pytest-parametrize-names-wrong-type)1 parent 3eb0599 commit c5c5ec9
File tree
21 files changed
+192
-193
lines changed- docs
- src/libtmux
- _internal
- _vendor
- tests
- _internal
- legacy_api
21 files changed
+192
-193
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | 24 | | |
28 | 25 | | |
29 | 26 | | |
| |||
47 | 44 | | |
48 | 45 | | |
49 | 46 | | |
50 | | - | |
| 47 | + | |
51 | 48 | | |
52 | 49 | | |
53 | 50 | | |
| |||
56 | 53 | | |
57 | 54 | | |
58 | 55 | | |
59 | | - | |
| 56 | + | |
60 | 57 | | |
61 | 58 | | |
62 | 59 | | |
63 | 60 | | |
64 | | - | |
65 | 61 | | |
66 | 62 | | |
67 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
209 | 208 | | |
210 | 209 | | |
211 | 210 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | | - | |
106 | 105 | | |
107 | 106 | | |
108 | 107 | | |
| |||
307 | 306 | | |
308 | 307 | | |
309 | 308 | | |
310 | | - | |
| 309 | + | |
311 | 310 | | |
312 | 311 | | |
313 | 312 | | |
314 | 313 | | |
315 | | - | |
| 314 | + | |
316 | 315 | | |
317 | 316 | | |
318 | 317 | | |
| |||
473 | 472 | | |
474 | 473 | | |
475 | 474 | | |
476 | | - | |
| 475 | + | |
477 | 476 | | |
478 | 477 | | |
479 | 478 | | |
| |||
493 | 492 | | |
494 | 493 | | |
495 | 494 | | |
496 | | - | |
497 | | - | |
498 | | - | |
| 495 | + | |
| 496 | + | |
499 | 497 | | |
500 | 498 | | |
501 | 499 | | |
| |||
534 | 532 | | |
535 | 533 | | |
536 | 534 | | |
537 | | - | |
538 | | - | |
| 535 | + | |
539 | 536 | | |
540 | 537 | | |
541 | 538 | | |
| |||
557 | 554 | | |
558 | 555 | | |
559 | 556 | | |
560 | | - | |
561 | | - | |
| 557 | + | |
| 558 | + | |
562 | 559 | | |
563 | | - | |
| 560 | + | |
564 | 561 | | |
565 | 562 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
365 | | - | |
366 | | - | |
| 365 | + | |
367 | 366 | | |
368 | 367 | | |
369 | 368 | | |
| |||
494 | 493 | | |
495 | 494 | | |
496 | 495 | | |
497 | | - | |
| 496 | + | |
498 | 497 | | |
499 | | - | |
| 498 | + | |
500 | 499 | | |
501 | 500 | | |
502 | 501 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | 19 | | |
24 | 20 | | |
25 | 21 | | |
| |||
219 | 215 | | |
220 | 216 | | |
221 | 217 | | |
222 | | - | |
| 218 | + | |
223 | 219 | | |
224 | 220 | | |
225 | 221 | | |
| |||
416 | 412 | | |
417 | 413 | | |
418 | 414 | | |
419 | | - | |
420 | | - | |
| 415 | + | |
421 | 416 | | |
422 | 417 | | |
423 | 418 | | |
| |||
439 | 434 | | |
440 | 435 | | |
441 | 436 | | |
442 | | - | |
| 437 | + | |
443 | 438 | | |
444 | | - | |
| 439 | + | |
445 | 440 | | |
446 | 441 | | |
447 | 442 | | |
| |||
474 | 469 | | |
475 | 470 | | |
476 | 471 | | |
477 | | - | |
| 472 | + | |
478 | 473 | | |
479 | | - | |
| 474 | + | |
480 | 475 | | |
481 | | - | |
482 | | - | |
| 476 | + | |
483 | 477 | | |
484 | 478 | | |
485 | 479 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
| 147 | + | |
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
150 | | - | |
151 | | - | |
152 | 151 | | |
153 | 152 | | |
154 | | - | |
| 153 | + | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
159 | | - | |
160 | 158 | | |
161 | 159 | | |
162 | 160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
| 229 | + | |
234 | 230 | | |
235 | 231 | | |
236 | 232 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
| 218 | + | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
| 221 | + | |
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
| 227 | + | |
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
| 245 | + | |
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
439 | | - | |
440 | | - | |
441 | 439 | | |
442 | 440 | | |
443 | 441 | | |
| |||
650 | 648 | | |
651 | 649 | | |
652 | 650 | | |
653 | | - | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
654 | 654 | | |
655 | 655 | | |
656 | 656 | | |
| |||
877 | 877 | | |
878 | 878 | | |
879 | 879 | | |
880 | | - | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
881 | 883 | | |
882 | 884 | | |
883 | 885 | | |
| |||
0 commit comments