Commit 53f03e8
committed
chore(ruff): Run automated fixes (97 errors)
ruff --show-fixes --fix .
- conftest.py:
1 × I001 (unsorted-imports)
- docs/_ext/aafig.py:
5 × C408 (unnecessary-collection-call)
1 × RUF005 (collection-literal-concatenation)
- docs/conf.py:
2 × C408 (unnecessary-collection-call)
1 × I001 (unsorted-imports)
1 × SIM108 (if-else-block-instead-of-if-exp)
1 × RUF100 (unused-noqa)
- src/tmuxp/cli/debug_info.py:
1 × I001 (unsorted-imports)
1 × C417 (unnecessary-map)
- src/tmuxp/cli/freeze.py:
1 × I001 (unsorted-imports)
- src/tmuxp/cli/load.py:
1 × I001 (unsorted-imports)
1 × UP031 (printf-string-formatting)
1 × UP032 (f-string)
- src/tmuxp/cli/shell.py:
1 × RUF100 (unused-noqa)
- src/tmuxp/cli/utils.py:
1 × UP031 (printf-string-formatting)
1 × UP032 (f-string)
- src/tmuxp/exc.py:
1 × UP032 (f-string)
- src/tmuxp/shell.py:
4 × RUF100 (unused-noqa)
- src/tmuxp/types.py:
1 × RUF100 (unused-noqa)
- src/tmuxp/util.py:
2 × RUF100 (unused-noqa)
1 × RUF015 (unnecessary-iterable-allocation-for-first-element)
1 × TRY201 (verbose-raise)
- src/tmuxp/workspace/builder.py:
3 × SIM401 (if-else-block-instead-of-dict-get)
1 × F841 (unused-variable)
1 × B006 (mutable-argument-default)
1 × RUF013 (implicit-optional)
1 × TRY201 (verbose-raise)
- src/tmuxp/workspace/finders.py:
2 × B006 (mutable-argument-default)
1 × RUF013 (implicit-optional)
- src/tmuxp/workspace/freezer.py:
1 × I001 (unsorted-imports)
1 × UP018 (native-literals)
- src/tmuxp/workspace/importers.py:
2 × B007 (unused-loop-control-variable)
1 × SIM401 (if-else-block-instead-of-dict-get)
- src/tmuxp/workspace/loader.py:
2 × SIM401 (if-else-block-instead-of-dict-get)
1 × UP018 (native-literals)
1 × SIM102 (collapsible-if)
- src/tmuxp/workspace/validation.py:
1 × SIM102 (collapsible-if)
- tests/cli/test_cli.py:
2 × I001 (unsorted-imports)
2 × SIM105 (suppressible-exception)
1 × PTH201 (path-constructor-current-directory)
- tests/cli/test_convert.py:
2 × SIM105 (suppressible-exception)
1 × I001 (unsorted-imports)
- tests/cli/test_freeze.py:
2 × I001 (unsorted-imports)
2 × SIM105 (suppressible-exception)
2 × RUF005 (collection-literal-concatenation)
- tests/cli/test_import.py:
2 × SIM105 (suppressible-exception)
1 × I001 (unsorted-imports)
- tests/cli/test_load.py:
5 × SIM105 (suppressible-exception)
2 × I001 (unsorted-imports)
1 × RUF005 (collection-literal-concatenation)
1 × UP032 (f-string)
- tests/cli/test_ls.py:
1 × SIM105 (suppressible-exception)
1 × I001 (unsorted-imports)
- tests/cli/test_shell.py:
3 × C408 (unnecessary-collection-call)
2 × I001 (unsorted-imports)
1 × SIM105 (suppressible-exception)
- tests/fixtures/__init__.py:
1 × RUF100 (unused-noqa)
- tests/fixtures/import_teamocil/__init__.py:
1 × RUF100 (unused-noqa)
- tests/fixtures/import_tmuxinator/__init__.py:
1 × RUF100 (unused-noqa)
- tests/fixtures/workspace/__init__.py:
1 × RUF100 (unused-noqa)
- tests/tests/test_helpers.py:
1 × I001 (unsorted-imports)
- tests/workspace/test_builder.py:
1 × I001 (unsorted-imports)
1 × SIM300 (yoda-conditions)
1 × SIM108 (if-else-block-instead-of-if-exp)
1 × UP030 (format-literals)
1 × UP032 (f-string)
- tests/workspace/test_config.py:
2 × B007 (unused-loop-control-variable)1 parent e10145e commit 53f03e8
File tree
32 files changed
+140
-185
lines changed- docs
- _ext
- src/tmuxp
- cli
- workspace
- tests
- cli
- fixtures
- import_teamocil
- import_tmuxinator
- workspace
- tests
- workspace
32 files changed
+140
-185
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | | - | |
16 | 14 | | |
| 15 | + | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
| 74 | + | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| 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 | | |
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
| 175 | + | |
176 | 176 | | |
177 | | - | |
| 177 | + | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
| 227 | + | |
231 | 228 | | |
232 | 229 | | |
233 | 230 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
37 | | - | |
| 36 | + | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
| 94 | + | |
98 | 95 | | |
99 | 96 | | |
100 | 97 | | |
| |||
122 | 119 | | |
123 | 120 | | |
124 | 121 | | |
125 | | - | |
126 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
127 | 125 | | |
128 | 126 | | |
129 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
| 53 | + | |
| 54 | + | |
55 | 55 | | |
56 | | - | |
57 | | - | |
| 56 | + | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
| 47 | + | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
0 commit comments