konstin
625849b846
Ecosystem CI: Optionally diff fixes (#4193)
* Generate fixes when using --show-fixes
Example command: `cargo run --bin ruff -- --no-cache --select F401
--show-source --show-fixes
crates/ruff/resources/test/fixtures/pyflakes/F401_9.py`
Before, `--show-fixes` was ignored:
```
crates/ruff/resources/test/fixtures/pyflakes/F401_9.py:4:22: F401 [*] `foo.baz` imported but unused
|
4 | __all__ = ("bar",)
5 | from foo import bar, baz
| ^^^ F401
|
= help: Remove unused import: `foo.baz`
Found 1 error.
[*] 1 potentially fixable with the --fix option.
```
After:
```
crates/ruff/resources/test/fixtures/pyflakes/F401_9.py:4:22: F401 [*] `foo.baz` imported but unused
|
4 | __all__ = ("bar",)
5 | from foo import bar, baz
| ^^^ F401
|
= help: Remove unused import: `foo.baz`
ℹ Suggested fix
1 1 | """Test: late-binding of `__all__`."""
2 2 |
3 3 | __all__ = ("bar",)
4 |-from foo import bar, baz
4 |+from foo import bar
Found 1 error.
[*] 1 potentially fixable with the --fix option.
```
Also fixes git clone
2023-05-19 09:49:57 +00:00
..
2023-04-30 13:39:22 +02:00
2023-03-25 16:05:39 +00:00
2023-04-11 09:03:00 +00:00
2023-05-18 15:17:26 +00:00
2023-05-16 20:39:43 +00:00
2023-05-19 09:49:57 +00:00
2023-05-19 09:49:57 +00:00
2023-02-24 18:55:33 +00:00
2023-03-19 19:20:11 +00:00
2023-05-16 21:21:58 +00:00
2023-02-02 13:59:22 -05:00
2023-05-08 14:20:44 -04:00