-
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.
[
pygrep_hooks
] Check blanket ignores via file-level pragmas (`PGH00…
…4`) (#11540) ## Summary Should resolve #11454. This is my first PR to `ruff`, so I may have missed something. If I understood the suggestion in the issue correctly, rule `PGH004` should be set to `Preview` again. ## Test Plan Created two fixtures derived from the issue.
- Loading branch information
Showing
7 changed files
with
204 additions
and
46 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
crates/ruff_linter/resources/test/fixtures/pygrep_hooks/PGH004_2.py
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,7 @@ | ||
# noqa | ||
# ruff : noqa | ||
# ruff: noqa: F401 | ||
|
||
|
||
# flake8: noqa | ||
import math as m |
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
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
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
Oops, something went wrong.