Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork944
Commit6318eea
committed
Make F401 "unused import" suppressions more specific
In git.compat and git.util.This applies them individually to each name that is known to be anunused import, rather than to entire import statements (exceptwhere the entire statement fit on one line and everything itimported is known to be unused).Either Ruff has the ability to accept this more granular style ofsuppression, or I had been unaware of it from flake8 (used before).I have veriifed that the suppressions are not superfluous: with nosuppressions, Ruff does warn. This commit makes no change ingit.types because it looks like no suppression at all may beneeded there anymore; that will be covered in the next commit.This also removes the old `@UnusedImport` comments, which had beenkept before because they were more granular; this specificity isnow achieved by comments the tools being used can recognize.1 parent3d4e476 commit6318eea
2 files changed
+16
-16
lines changedLines changed: 7 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 |
| - | |
| 17 | + | |
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
21 |
| - | |
22 |
| - | |
| 21 | + | |
| 22 | + | |
23 | 23 |
| |
24 |
| - | |
25 |
| - | |
| 24 | + | |
| 25 | + | |
26 | 26 |
| |
27 |
| - | |
28 |
| - | |
| 27 | + | |
| 28 | + | |
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
|
Lines changed: 9 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
51 | 51 |
| |
52 | 52 |
| |
53 | 53 |
| |
54 |
| - | |
55 |
| - | |
56 |
| - | |
57 |
| - | |
58 |
| - | |
59 |
| - | |
60 |
| - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
61 | 61 |
| |
62 |
| - | |
63 |
| - | |
| 62 | + | |
| 63 | + | |
64 | 64 |
| |
65 | 65 |
| |
66 | 66 |
| |
|
0 commit comments
Comments
(0)