-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid treating lowercase letters as
# noqa
codes (#14229)
## Summary An oversight from the original implementation. Closes #14228.
- Loading branch information
1 parent
71da1d6
commit ce3af27
Showing
3 changed files
with
34 additions
and
3 deletions.
There are no files selected for viewing
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
19 changes: 19 additions & 0 deletions
19
crates/ruff_linter/src/snapshots/ruff_linter__noqa__tests__noqa_non_code.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,19 @@ | ||
--- | ||
source: crates/ruff_linter/src/noqa.rs | ||
expression: "Directive::try_extract(source, TextSize::default())" | ||
--- | ||
Ok( | ||
Some( | ||
Codes( | ||
Codes { | ||
range: 0..12, | ||
codes: [ | ||
Code { | ||
code: "F401", | ||
range: 8..12, | ||
}, | ||
], | ||
}, | ||
), | ||
), | ||
) |
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