Commit 4cd2464
committed
refactor!(ruff): Run all automated fixes as of ruff 0.3.4
ruff check --select ALL . --fix --unsafe-fixes --preview --show-fixes --ignore T201 --ignore PT014; ruff format .
Fixed 184 errors:
- conftest.py:
3 × PT003 (pytest-extraneous-scope-function)
2 × PT001 (pytest-fixture-incorrect-parentheses-style)
- docs/_ext/aafig.py:
4 × G010 (logging-warn)
2 × PLW1514 (unspecified-encoding)
2 × RSE102 (unnecessary-paren-on-raise-exception)
1 × PLR1714 (repeated-equality-comparison)
1 × I001 (unsorted-imports)
1 × F841 (unused-variable)
1 × PLR6201 (literal-membership)
- docs/conf.py:
1 × RET505 (superfluous-else-return)
- src/tmuxp/_internal/config_reader.py:
4 × RET505 (superfluous-else-return)
1 × PLR6201 (literal-membership)
- src/tmuxp/cli/__init__.py:
3 × TID252 (relative-imports)
2 × RET505 (superfluous-else-return)
1 × I001 (unsorted-imports)
- src/tmuxp/cli/convert.py:
1 × TID252 (relative-imports)
1 × PLW1514 (unspecified-encoding)
1 × I001 (unsorted-imports)
1 × PLR6201 (literal-membership)
- src/tmuxp/cli/debug_info.py:
1 × TID252 (relative-imports)
1 × I001 (unsorted-imports)
- src/tmuxp/cli/freeze.py:
3 × TID252 (relative-imports)
1 × PLW1514 (unspecified-encoding)
1 × RSE102 (unnecessary-paren-on-raise-exception)
1 × I001 (unsorted-imports)
- src/tmuxp/cli/import_config.py:
1 × TID252 (relative-imports)
1 × PLW1514 (unspecified-encoding)
1 × I001 (unsorted-imports)
- src/tmuxp/cli/load.py:
8 × TID252 (relative-imports)
1 × RET505 (superfluous-else-return)
1 × FURB113 (repeated-append)
1 × I001 (unsorted-imports)
- src/tmuxp/cli/shell.py:
4 × TID252 (relative-imports)
1 × PLR5501 (collapsible-else-if)
- src/tmuxp/cli/utils.py:
3 × RUF021 (parenthesize-chained-operators)
1 × TID252 (relative-imports)
1 × RET505 (superfluous-else-return)
- src/tmuxp/log.py:
1 × E303 (too-many-blank-lines)
1 × RET504 (unnecessary-assign)
- src/tmuxp/plugin.py:
1 × SIM103 (needless-bool)
1 × E713 (not-in-test)
- src/tmuxp/shell.py:
3 × RET505 (superfluous-else-return)
- src/tmuxp/types.py:
1 × TCH003 (typing-only-standard-library-import)
1 × I001 (unsorted-imports)
- src/tmuxp/util.py:
3 × RET506 (superfluous-else-raise)
3 × RSE102 (unnecessary-paren-on-raise-exception)
- src/tmuxp/workspace/builder.py:
4 × RET505 (superfluous-else-return)
3 × TID252 (relative-imports)
3 × RSE102 (unnecessary-paren-on-raise-exception)
1 × RET506 (superfluous-else-raise)
- src/tmuxp/workspace/finders.py:
2 × E303 (too-many-blank-lines)
2 × RET504 (unnecessary-assign)
- src/tmuxp/workspace/freezer.py:
1 × PLR5501 (collapsible-else-if)
- src/tmuxp/workspace/importers.py:
1 × TD006 (invalid-todo-capitalization)
1 × RET507 (superfluous-else-continue)
- src/tmuxp/workspace/loader.py:
1 × PLR5501 (collapsible-else-if)
- src/tmuxp/workspace/validation.py:
3 × RSE102 (unnecessary-paren-on-raise-exception)
1 × PIE790 (unnecessary-placeholder)
1 × TID252 (relative-imports)
1 × E303 (too-many-blank-lines)
- tests/cli/test_cli.py:
2 × I001 (unsorted-imports)
1 × TCH002 (typing-only-third-party-import)
1 × TID252 (relative-imports)
- tests/cli/test_convert.py:
1 × PLR6201 (literal-membership)
- tests/cli/test_freeze.py:
2 × PT006 (pytest-parametrize-names-wrong-type)
1 × TCH002 (typing-only-third-party-import)
- tests/cli/test_import.py:
2 × PT006 (pytest-parametrize-names-wrong-type)
1 × TID252 (relative-imports)
1 × I001 (unsorted-imports)
- tests/cli/test_load.py:
2 × TID252 (relative-imports)
2 × PT006 (pytest-parametrize-names-wrong-type)
1 × I001 (unsorted-imports)
- tests/cli/test_shell.py:
2 × PT006 (pytest-parametrize-names-wrong-type)
1 × TCH002 (typing-only-third-party-import)
- tests/fixtures/import_teamocil/layouts.py:
1 × TID252 (relative-imports)
- tests/fixtures/import_teamocil/test1.py:
1 × TID252 (relative-imports)
- tests/fixtures/import_teamocil/test2.py:
1 × TID252 (relative-imports)
- tests/fixtures/import_teamocil/test3.py:
1 × TID252 (relative-imports)
1 × ISC001 (single-line-implicit-string-concatenation)
- tests/fixtures/import_teamocil/test4.py:
1 × TID252 (relative-imports)
- tests/fixtures/import_tmuxinator/test1.py:
1 × TID252 (relative-imports)
- tests/fixtures/import_tmuxinator/test2.py:
1 × TID252 (relative-imports)
1 × ISC001 (single-line-implicit-string-concatenation)
- tests/fixtures/import_tmuxinator/test3.py:
1 × TID252 (relative-imports)
1 × ISC001 (single-line-implicit-string-concatenation)
- tests/fixtures/utils.py:
1 × TID252 (relative-imports)
- tests/fixtures/workspace/expand2.py:
1 × TID252 (relative-imports)
- tests/fixtures/workspace/shell_command_before_session.py:
1 × TID252 (relative-imports)
- tests/test_plugin.py:
1 × PIE790 (unnecessary-placeholder)
- tests/test_util.py:
1 × F841 (unused-variable)
- tests/workspace/conftest.py:
2 × TID252 (relative-imports)
1 × PT001 (pytest-fixture-incorrect-parentheses-style)
- tests/workspace/test_builder.py:
13 × PT007 (pytest-parametrize-values-wrong-type)
3 × TID252 (relative-imports)
2 × PT006 (pytest-parametrize-names-wrong-type)
1 × RET505 (superfluous-else-return)
1 × I001 (unsorted-imports)
1 × PIE808 (unnecessary-range-start)
1 × PLR1714 (repeated-equality-comparison)
1 × PLR6201 (literal-membership)
- tests/workspace/test_config.py:
2 × TID252 (relative-imports)
1 × I001 (unsorted-imports)
- tests/workspace/test_finder.py:
3 × PT001 (pytest-fixture-incorrect-parentheses-style)
1 × PT006 (pytest-parametrize-names-wrong-type)
- tests/workspace/test_freezer.py:
2 × TID252 (relative-imports)
1 × I001 (unsorted-imports)
- tests/workspace/test_import_teamocil.py:
2 × PT006 (pytest-parametrize-names-wrong-type)
1 × I001 (unsorted-imports)
1 × TID252 (relative-imports)
- tests/workspace/test_import_tmuxinator.py:
1 × I001 (unsorted-imports)
1 × TID252 (relative-imports)
1 × PT006 (pytest-parametrize-names-wrong-type)1 parent 447e91d commit 4cd2464
File tree
49 files changed
+229
-242
lines changed- docs
- _ext
- src/tmuxp
- _internal
- cli
- workspace
- tests
- cli
- fixtures
- import_teamocil
- import_tmuxinator
- workspace
- workspace
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
49 files changed
+229
-242
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
94 | | - | |
| 95 | + | |
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
| |||
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
111 | | - | |
| 112 | + | |
112 | 113 | | |
113 | 114 | | |
114 | 115 | | |
| |||
124 | 125 | | |
125 | 126 | | |
126 | 127 | | |
127 | | - | |
| 128 | + | |
128 | 129 | | |
129 | 130 | | |
130 | 131 | | |
| |||
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
138 | | - | |
| 139 | + | |
139 | 140 | | |
140 | | - | |
| 141 | + | |
141 | 142 | | |
142 | 143 | | |
143 | 144 | | |
| |||
162 | 163 | | |
163 | 164 | | |
164 | 165 | | |
165 | | - | |
| 166 | + | |
166 | 167 | | |
167 | 168 | | |
168 | 169 | | |
| |||
174 | 175 | | |
175 | 176 | | |
176 | 177 | | |
177 | | - | |
| 178 | + | |
178 | 179 | | |
179 | 180 | | |
180 | 181 | | |
| |||
191 | 192 | | |
192 | 193 | | |
193 | 194 | | |
194 | | - | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
195 | 198 | | |
196 | 199 | | |
197 | | - | |
| 200 | + | |
198 | 201 | | |
199 | 202 | | |
200 | 203 | | |
| |||
213 | 216 | | |
214 | 217 | | |
215 | 218 | | |
216 | | - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
217 | 222 | | |
218 | 223 | | |
219 | 224 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
214 | 213 | | |
215 | 214 | | |
216 | 215 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | | - | |
| 50 | + | |
| 51 | + | |
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
| |||
107 | 106 | | |
108 | 107 | | |
109 | 108 | | |
110 | | - | |
| 109 | + | |
111 | 110 | | |
112 | 111 | | |
113 | 112 | | |
| |||
182 | 181 | | |
183 | 182 | | |
184 | 183 | | |
185 | | - | |
| 184 | + | |
186 | 185 | | |
187 | 186 | | |
188 | 187 | | |
189 | 188 | | |
190 | | - | |
191 | | - | |
192 | | - | |
| 189 | + | |
| 190 | + | |
193 | 191 | | |
194 | 192 | | |
195 | 193 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
141 | 142 | | |
142 | 143 | | |
143 | 144 | | |
144 | | - | |
| 145 | + | |
145 | 146 | | |
146 | 147 | | |
147 | 148 | | |
| |||
156 | 157 | | |
157 | 158 | | |
158 | 159 | | |
159 | | - | |
| 160 | + | |
160 | 161 | | |
161 | 162 | | |
162 | 163 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
11 | | - | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
73 | | - | |
| 74 | + | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| |||
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
95 | | - | |
| 96 | + | |
96 | 97 | | |
97 | 98 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | | - | |
16 | | - | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
112 | 113 | | |
113 | 114 | | |
114 | 115 | | |
115 | | - | |
| 116 | + | |
116 | 117 | | |
117 | 118 | | |
118 | 119 | | |
| |||
206 | 207 | | |
207 | 208 | | |
208 | 209 | | |
209 | | - | |
| 210 | + | |
210 | 211 | | |
211 | 212 | | |
212 | 213 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | | - | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
172 | 173 | | |
173 | 174 | | |
174 | 175 | | |
175 | | - | |
| 176 | + | |
176 | 177 | | |
177 | 178 | | |
178 | 179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
17 | 22 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
97 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
| |||
441 | 442 | | |
442 | 443 | | |
443 | 444 | | |
444 | | - | |
| 445 | + | |
445 | 446 | | |
446 | 447 | | |
447 | 448 | | |
| |||
0 commit comments