Skip to content

Commit

Permalink
Fix name of rule in example of extend-per-file-ignores in options.rs (
Browse files Browse the repository at this point in the history
#6417)

<!--
Thank you for contributing to Ruff! To help us out with reviewing,
please consider the following:

- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title?
- Does this pull request include references to any relevant issues?

-->

## Summary

<!-- What's the purpose of the change? What does it do, and why? -->

Fix name of rule in example of `extend-per-file-ignores` in `options.rs`
file.

It was `E401` but in configuration example `E402` was listed. Just a
tiny mismatch.

## Test Plan

<!-- How was it tested? -->

Just by my eyes :).
  • Loading branch information
piotrgredowski authored Aug 8, 2023
1 parent 90ba40c commit 6aefe71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/ruff/src/settings/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ pub struct Options {
default = "{}",
value_type = "dict[str, list[RuleSelector]]",
example = r#"
# Also ignore `E401` in all `__init__.py` files.
# Also ignore `E402` in all `__init__.py` files.
[tool.ruff.extend-per-file-ignores]
"__init__.py" = ["E402"]
"#
Expand Down

0 comments on commit 6aefe71

Please sign in to comment.