Commit 2aed6d6
committed
chore(ruff) Automated fixes for typing annotations
Fixed 402 errors:
- conftest.py:
1 × UP007 (non-pep604-annotation)
1 × I002 (missing-required-import)
- docs/_ext/aafig.py:
6 × UP007 (non-pep604-annotation)
3 × UP037 (quoted-annotation)
1 × I002 (missing-required-import)
- docs/conf.py:
2 × UP007 (non-pep604-annotation)
2 × UP037 (quoted-annotation)
1 × I002 (missing-required-import)
- src/tmuxp/__about__.py:
1 × I002 (missing-required-import)
- src/tmuxp/__init__.py:
1 × I002 (missing-required-import)
- src/tmuxp/_internal/config_reader.py:
8 × UP037 (quoted-annotation)
1 × I002 (missing-required-import)
- src/tmuxp/_internal/types.py:
1 × I002 (missing-required-import)
- src/tmuxp/cli/__init__.py:
3 × UP037 (quoted-annotation)
2 × UP007 (non-pep604-annotation)
1 × I002 (missing-required-import)
1 × TC003 (typing-only-standard-library-import)
1 × I001 (unsorted-imports)
- src/tmuxp/cli/convert.py:
2 × UP007 (non-pep604-annotation)
1 × T201 (print)
1 × I002 (missing-required-import)
1 × TC003 (typing-only-standard-library-import)
- src/tmuxp/cli/debug_info.py:
1 × UP007 (non-pep604-annotation)
1 × TC003 (typing-only-standard-library-import)
1 × I002 (missing-required-import)
- src/tmuxp/cli/edit.py:
2 × TC003 (typing-only-standard-library-import)
2 × UP007 (non-pep604-annotation)
1 × I002 (missing-required-import)
1 × I001 (unsorted-imports)
- src/tmuxp/cli/freeze.py:
10 × UP007 (non-pep604-annotation)
5 × T201 (print)
3 × UP037 (quoted-annotation)
1 × I002 (missing-required-import)
1 × F841 (unused-variable)
- src/tmuxp/cli/import_config.py:
3 × UP007 (non-pep604-annotation)
1 × TC003 (typing-only-standard-library-import)
1 × I002 (missing-required-import)
- src/tmuxp/cli/load.py:
15 × UP007 (non-pep604-annotation)
2 × T201 (print)
1 × UP037 (quoted-annotation)
1 × E303 (too-many-blank-lines)
1 × TC002 (typing-only-third-party-import)
1 × I001 (unsorted-imports)
1 × B007 (unused-loop-control-variable)
1 × I002 (missing-required-import)
1 × TC001 (typing-only-first-party-import)
- src/tmuxp/cli/ls.py:
1 × T201 (print)
1 × I002 (missing-required-import)
1 × UP007 (non-pep604-annotation)
1 × F841 (unused-variable)
1 × TC003 (typing-only-standard-library-import)
- src/tmuxp/cli/shell.py:
8 × UP007 (non-pep604-annotation)
2 × UP037 (quoted-annotation)
1 × I002 (missing-required-import)
- src/tmuxp/cli/utils.py:
19 × UP007 (non-pep604-annotation)
3 × UP037 (quoted-annotation)
2 × TC003 (typing-only-standard-library-import)
1 × T201 (print)
1 × E303 (too-many-blank-lines)
1 × I001 (unsorted-imports)
1 × I002 (missing-required-import)
- src/tmuxp/exc.py:
4 × UP007 (non-pep604-annotation)
1 × F401 (unused-import)
1 × I002 (missing-required-import)
1 × I001 (unsorted-imports)
- src/tmuxp/log.py:
2 × UP007 (non-pep604-annotation)
1 × I002 (missing-required-import)
- src/tmuxp/plugin.py:
12 × UP007 (non-pep604-annotation)
12 × UP037 (quoted-annotation)
1 × I002 (missing-required-import)
- src/tmuxp/shell.py:
18 × UP037 (quoted-annotation)
6 × UP007 (non-pep604-annotation)
1 × I002 (missing-required-import)
1 × TC003 (typing-only-standard-library-import)
- src/tmuxp/types.py:
1 × I002 (missing-required-import)
- src/tmuxp/util.py:
11 × UP037 (quoted-annotation)
8 × UP007 (non-pep604-annotation)
2 × T201 (print)
1 × TC003 (typing-only-standard-library-import)
1 × F841 (unused-variable)
1 × I001 (unsorted-imports)
1 × I002 (missing-required-import)
- src/tmuxp/workspace/builder.py:
5 × UP007 (non-pep604-annotation)
2 × UP037 (quoted-annotation)
1 × I002 (missing-required-import)
1 × TC003 (typing-only-standard-library-import)
- src/tmuxp/workspace/constants.py:
1 × I002 (missing-required-import)
- src/tmuxp/workspace/finders.py:
4 × UP007 (non-pep604-annotation)
3 × UP037 (quoted-annotation)
1 × TC003 (typing-only-standard-library-import)
1 × I001 (unsorted-imports)
1 × I002 (missing-required-import)
1 × TC001 (typing-only-first-party-import)
- src/tmuxp/workspace/freezer.py:
2 × UP007 (non-pep604-annotation)
2 × TC002 (typing-only-third-party-import)
2 × I001 (unsorted-imports)
1 × UP037 (quoted-annotation)
1 × I002 (missing-required-import)
- src/tmuxp/workspace/importers.py:
1 × I002 (missing-required-import)
- src/tmuxp/workspace/loader.py:
3 × UP007 (non-pep604-annotation)
1 × I002 (missing-required-import)
- src/tmuxp/workspace/validation.py:
1 × I002 (missing-required-import)
- tests/cli/test_cli.py:
2 × UP037 (quoted-annotation)
1 × I002 (missing-required-import)
- tests/cli/test_convert.py:
1 × I001 (unsorted-imports)
1 × TC003 (typing-only-standard-library-import)
1 × I002 (missing-required-import)
- tests/cli/test_debug_info.py:
3 × I001 (unsorted-imports)
1 × I002 (missing-required-import)
1 × TC003 (typing-only-standard-library-import)
1 × TC002 (typing-only-third-party-import)
- tests/cli/test_freeze.py:
2 × UP037 (quoted-annotation)
1 × I002 (missing-required-import)
1 × TC003 (typing-only-standard-library-import)
1 × I001 (unsorted-imports)
- tests/cli/test_import.py:
1 × I001 (unsorted-imports)
1 × I002 (missing-required-import)
1 × TC003 (typing-only-standard-library-import)
- tests/cli/test_load.py:
22 × UP037 (quoted-annotation)
1 × UP007 (non-pep604-annotation)
1 × I002 (missing-required-import)
1 × TC002 (typing-only-third-party-import)
- tests/cli/test_ls.py:
1 × I001 (unsorted-imports)
1 × TC002 (typing-only-third-party-import)
1 × I002 (missing-required-import)
- tests/cli/test_shell.py:
3 × UP037 (quoted-annotation)
1 × I002 (missing-required-import)
1 × PYI055 (unnecessary-type-union)
1 × TC003 (typing-only-standard-library-import)
1 × TC002 (typing-only-third-party-import)
1 × I001 (unsorted-imports)
1 × UP007 (non-pep604-annotation)
- tests/constants.py:
1 × I002 (missing-required-import)
- tests/fixtures/__init__.py:
1 × I002 (missing-required-import)
- tests/fixtures/import_teamocil/__init__.py:
1 × I002 (missing-required-import)
- tests/fixtures/import_teamocil/layouts.py:
1 × I002 (missing-required-import)
- tests/fixtures/import_teamocil/test1.py:
1 × I002 (missing-required-import)
- tests/fixtures/import_teamocil/test2.py:
1 × I002 (missing-required-import)
- tests/fixtures/import_teamocil/test3.py:
1 × I002 (missing-required-import)
- tests/fixtures/import_teamocil/test4.py:
1 × I002 (missing-required-import)
- tests/fixtures/import_tmuxinator/__init__.py:
1 × I002 (missing-required-import)
- tests/fixtures/import_tmuxinator/test1.py:
1 × I002 (missing-required-import)
- tests/fixtures/import_tmuxinator/test2.py:
1 × I002 (missing-required-import)
- tests/fixtures/import_tmuxinator/test3.py:
1 × I002 (missing-required-import)
- tests/fixtures/pluginsystem/partials/_types.py:
1 × I002 (missing-required-import)
- tests/fixtures/pluginsystem/partials/all_pass.py:
1 × I002 (missing-required-import)
- tests/fixtures/pluginsystem/partials/libtmux_version_fail.py:
1 × I002 (missing-required-import)
- tests/fixtures/pluginsystem/partials/test_plugin_helpers.py:
1 × I002 (missing-required-import)
1 × UP037 (quoted-annotation)
- tests/fixtures/pluginsystem/partials/tmux_version_fail.py:
1 × I002 (missing-required-import)
- tests/fixtures/pluginsystem/partials/tmuxp_version_fail.py:
1 × I002 (missing-required-import)
- tests/fixtures/pluginsystem/plugins/tmuxp_test_plugin_awf/tmuxp_test_plugin_awf/plugin.py:
1 × UP037 (quoted-annotation)
1 × I002 (missing-required-import)
- tests/fixtures/pluginsystem/plugins/tmuxp_test_plugin_bs/tmuxp_test_plugin_bs/plugin.py:
1 × UP037 (quoted-annotation)
1 × I002 (missing-required-import)
- tests/fixtures/pluginsystem/plugins/tmuxp_test_plugin_bwb/tmuxp_test_plugin_bwb/plugin.py:
1 × I002 (missing-required-import)
1 × UP037 (quoted-annotation)
- tests/fixtures/pluginsystem/plugins/tmuxp_test_plugin_fail/tmuxp_test_plugin_fail/plugin.py:
1 × I002 (missing-required-import)
- tests/fixtures/pluginsystem/plugins/tmuxp_test_plugin_owc/tmuxp_test_plugin_owc/plugin.py:
1 × I002 (missing-required-import)
1 × UP037 (quoted-annotation)
- tests/fixtures/pluginsystem/plugins/tmuxp_test_plugin_r/tmuxp_test_plugin_r/plugin.py:
1 × UP037 (quoted-annotation)
1 × I002 (missing-required-import)
- tests/fixtures/structures.py:
1 × I002 (missing-required-import)
- tests/fixtures/utils.py:
2 × UP007 (non-pep604-annotation)
1 × F401 (unused-import)
1 × I002 (missing-required-import)
- tests/fixtures/workspace/__init__.py:
1 × I002 (missing-required-import)
- tests/fixtures/workspace/expand1.py:
1 × I002 (missing-required-import)
- tests/fixtures/workspace/expand2.py:
1 × I002 (missing-required-import)
- tests/fixtures/workspace/expand_blank.py:
1 × I002 (missing-required-import)
- tests/fixtures/workspace/sample_workspace.py:
1 × I002 (missing-required-import)
- tests/fixtures/workspace/shell_command_before.py:
1 × I002 (missing-required-import)
- tests/fixtures/workspace/shell_command_before_session.py:
1 × I002 (missing-required-import)
- tests/fixtures/workspace/trickle.py:
1 × I002 (missing-required-import)
- tests/test_plugin.py:
1 × I002 (missing-required-import)
- tests/test_shell.py:
1 × I002 (missing-required-import)
- tests/test_util.py:
1 × I001 (unsorted-imports)
1 × I002 (missing-required-import)
1 × TC002 (typing-only-third-party-import)
- tests/tests/test_helpers.py:
1 × I001 (unsorted-imports)
1 × TC002 (typing-only-third-party-import)
1 × I002 (missing-required-import)
- tests/workspace/conftest.py:
1 × I002 (missing-required-import)
- tests/workspace/test_builder.py:
2 × PT014 (pytest-duplicate-parametrize-test-cases)
2 × UP037 (quoted-annotation)
2 × UP007 (non-pep604-annotation)
1 × I002 (missing-required-import)
1 × TC002 (typing-only-third-party-import)
- tests/workspace/test_config.py:
7 × UP037 (quoted-annotation)
1 × UP007 (non-pep604-annotation)
1 × I002 (missing-required-import)
- tests/workspace/test_finder.py:
1 × I002 (missing-required-import)
1 × UP037 (quoted-annotation)
- tests/workspace/test_freezer.py:
2 × I001 (unsorted-imports)
1 × UP037 (quoted-annotation)
1 × TC003 (typing-only-standard-library-import)
1 × I002 (missing-required-import)
1 × TC002 (typing-only-third-party-import)
- tests/workspace/test_import_teamocil.py:
1 × I002 (missing-required-import)
- tests/workspace/test_import_tmuxinator.py:
1 × I002 (missing-required-import)
Found 1489 errors (402 fixed, 1087 remaining).
83 files reformatted, 16 files left unchanged
uv run ruff check --select ALL . --fix --unsafe-fixes --preview --show-fixes; uv run ruff format .1 parent d75829b commit 2aed6d6
File tree
83 files changed
+460
-311
lines changed- docs
- _ext
- src/tmuxp
- _internal
- cli
- workspace
- tests
- cli
- fixtures
- import_teamocil
- import_tmuxinator
- pluginsystem
- partials
- plugins
- tmuxp_test_plugin_awf/tmuxp_test_plugin_awf
- tmuxp_test_plugin_bs/tmuxp_test_plugin_bs
- tmuxp_test_plugin_bwb/tmuxp_test_plugin_bwb
- tmuxp_test_plugin_fail/tmuxp_test_plugin_fail
- tmuxp_test_plugin_owc/tmuxp_test_plugin_owc
- tmuxp_test_plugin_r/tmuxp_test_plugin_r
- workspace
- tests
- workspace
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
83 files changed
+460
-311
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | | - | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
43 | | - | |
44 | | - | |
45 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| |||
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
55 | | - | |
| 57 | + | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| |||
105 | 107 | | |
106 | 108 | | |
107 | 109 | | |
108 | | - | |
| 110 | + | |
109 | 111 | | |
110 | 112 | | |
111 | 113 | | |
| |||
157 | 159 | | |
158 | 160 | | |
159 | 161 | | |
160 | | - | |
| 162 | + | |
161 | 163 | | |
162 | 164 | | |
163 | | - | |
| 165 | + | |
164 | 166 | | |
165 | 167 | | |
166 | 168 | | |
| |||
227 | 229 | | |
228 | 230 | | |
229 | 231 | | |
230 | | - | |
| 232 | + | |
231 | 233 | | |
232 | 234 | | |
233 | 235 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
77 | | - | |
| 79 | + | |
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
| |||
143 | 145 | | |
144 | 146 | | |
145 | 147 | | |
146 | | - | |
| 148 | + | |
147 | 149 | | |
148 | 150 | | |
149 | 151 | | |
| |||
213 | 215 | | |
214 | 216 | | |
215 | 217 | | |
216 | | - | |
| 218 | + | |
217 | 219 | | |
218 | 220 | | |
219 | 221 | | |
220 | 222 | | |
221 | 223 | | |
222 | 224 | | |
223 | 225 | | |
224 | | - | |
| 226 | + | |
225 | 227 | | |
226 | 228 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
27 | | - | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
31 | | - | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
54 | | - | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| |||
120 | 122 | | |
121 | 123 | | |
122 | 124 | | |
123 | | - | |
| 125 | + | |
124 | 126 | | |
125 | 127 | | |
126 | 128 | | |
| |||
161 | 163 | | |
162 | 164 | | |
163 | 165 | | |
164 | | - | |
165 | | - | |
| 166 | + | |
| 167 | + | |
166 | 168 | | |
167 | 169 | | |
168 | 170 | | |
| |||
189 | 191 | | |
190 | 192 | | |
191 | 193 | | |
192 | | - | |
| 194 | + | |
193 | 195 | | |
194 | 196 | | |
195 | 197 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
6 | | - | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| |||
109 | 112 | | |
110 | 113 | | |
111 | 114 | | |
112 | | - | |
113 | | - | |
114 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
115 | 118 | | |
116 | 119 | | |
117 | 120 | | |
118 | 121 | | |
119 | 122 | | |
120 | 123 | | |
121 | | - | |
| 124 | + | |
122 | 125 | | |
123 | 126 | | |
124 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| |||
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
56 | | - | |
| 59 | + | |
57 | 60 | | |
58 | | - | |
| 61 | + | |
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
| |||
95 | 98 | | |
96 | 99 | | |
97 | 100 | | |
98 | | - | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
| |||
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
30 | | - | |
| 34 | + | |
31 | 35 | | |
32 | 36 | | |
33 | 37 | | |
| |||
0 commit comments