---
source: crates/ruff_linter/src/rules/ruff/mod.rs
---
F401 [*] `os` imported but unused
 --> ruff_noqa_invalid.py:1:8
  |
1 | import os  # ruff: noqa: F401
  |        ^^
  |
help: Remove unused import: `os`
  |
  - import os  # ruff: noqa: F401
1 |
  |

F841 [*] Local variable `x` is assigned to but never used
 --> ruff_noqa_invalid.py:5:5
  |
4 | def f():
5 |     x = 1
  |     ^
  |
help: Remove assignment to unused variable `x`
  |
4 | def f():
  -     x = 1
5 +     pass
  |
note: This is an unsafe fix and may change runtime behavior
