Zanie Blue
2b95d3832b
Update fix summary message in check --diff to include unsafe fix hints (#7790)
Requires #7769
Updates the CLI display for `ruff check --fix` to hint availability of
unsafe fixes.
```
❯ ruff check example.py --select F601,T201 --diff --no-cache
No errors fixed (1 fix available with `--unsafe-fixes`).
```
```
❯ ruff check example.py --select F601,T201,W292 --diff --no-cache
--- example.py
+++ example.py
@@ -1,2 +1,2 @@
x = {'a': 1, 'a': 1}
-print(('foo'))
+print(('foo'))
\ No newline at end of file
Would fix 1 error (1 additional fix available with `--unsafe-fixes`).
```
```
❯ ruff check example.py --select F601,T201,W292 --diff --no-cache
--unsafe-fixes
--- example.py
+++ example.py
@@ -1,2 +1,2 @@
-x = {'a': 1}
-print(('foo'))
+x = {'a': 1, 'a': 1}
+print(('foo'))
\ No newline at end of file
Would fix 2 errors.
```
2023-10-10 10:50:35 -05:00
..
2023-10-02 12:14:47 -04:00
2023-10-02 09:49:59 -04:00
2023-09-21 08:01:24 +02:00
2023-10-10 10:50:35 -05:00
2023-10-02 14:38:25 +00:00
2023-10-06 20:50:05 -05:00
2023-10-08 09:50:10 -04:00
2023-07-04 14:27:23 +00:00
2023-10-10 03:51:00 +00:00
2023-10-02 14:38:25 +00:00
2023-10-02 14:20:13 +00:00
2023-10-08 14:08:47 +00:00
2023-09-29 02:55:39 +00:00
2023-10-08 09:47:13 -04:00
2023-09-29 02:55:39 +00:00
2023-09-25 15:13:21 +00:00
2023-10-09 10:11:08 +00:00
2023-08-01 19:29:42 +02:00
2023-10-03 14:39:14 +00:00
2023-10-08 14:49:45 +00:00
2023-09-28 18:55:19 +00:00
2023-09-29 02:55:39 +00:00
2023-09-23 19:36:50 +00:00
2023-08-28 06:44:56 +00:00
2023-09-29 02:55:39 +00:00
2023-10-09 15:36:43 -04:00