Skip to content

Commit 47b146b

Browse files
committed
Commit missing snapshot
1 parent b6e3a9a commit 47b146b

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
source: crates/ruff_linter/src/message/grouped.rs
3+
expression: content
4+
---
5+
fib.py:
6+
1:8 F401 [*] `os` imported but unused
7+
|
8+
1 | import os
9+
| ^^ F401
10+
|
11+
= help: Remove unused import: `os`
12+
13+
6:5 F841 [*] Local variable `x` is assigned to but never used
14+
|
15+
4 | def fibonacci(n):
16+
5 | """Compute the nth number in the Fibonacci sequence."""
17+
6 | x = 1
18+
| ^ F841
19+
7 | if n == 0:
20+
8 | return 0
21+
|
22+
= help: Remove assignment to unused variable `x`
23+
24+
undef.py:
25+
1:4 F821 Undefined name `a`
26+
|
27+
1 | if a == 1: pass
28+
| ^ F821
29+
|
30+
31+
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
source: crates/ruff_linter/src/message/text.rs
3+
expression: content
4+
---
5+
fib.py:1:8: F401 [*] `os` imported but unused
6+
|
7+
1 | import os
8+
| ^^ F401
9+
|
10+
= help: Remove unused import: `os`
11+
12+
fib.py:6:5: F841 [*] Local variable `x` is assigned to but never used
13+
|
14+
4 | def fibonacci(n):
15+
5 | """Compute the nth number in the Fibonacci sequence."""
16+
6 | x = 1
17+
| ^ F841
18+
7 | if n == 0:
19+
8 | return 0
20+
|
21+
= help: Remove assignment to unused variable `x`
22+
23+
undef.py:1:4: F821 Undefined name `a`
24+
|
25+
1 | if a == 1: pass
26+
| ^ F821
27+
|
28+
29+

0 commit comments

Comments
 (0)