-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
...linter/src/message/snapshots/ruff_linter__message__grouped__tests__fix_status_unsafe.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
source: crates/ruff_linter/src/message/grouped.rs | ||
expression: content | ||
--- | ||
fib.py: | ||
1:8 F401 [*] `os` imported but unused | ||
| | ||
1 | import os | ||
| ^^ F401 | ||
| | ||
= help: Remove unused import: `os` | ||
|
||
6:5 F841 [*] Local variable `x` is assigned to but never used | ||
| | ||
4 | def fibonacci(n): | ||
5 | """Compute the nth number in the Fibonacci sequence.""" | ||
6 | x = 1 | ||
| ^ F841 | ||
7 | if n == 0: | ||
8 | return 0 | ||
| | ||
= help: Remove assignment to unused variable `x` | ||
|
||
undef.py: | ||
1:4 F821 Undefined name `a` | ||
| | ||
1 | if a == 1: pass | ||
| ^ F821 | ||
| | ||
|
||
|