forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[3.12] pythongh-110558: Run ruff on Argument Clinic in CI (python#110559
- Loading branch information
1 parent
c8bffd1
commit da73e4c
Showing
5 changed files
with
21 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
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
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,14 @@ | ||
target-version = "py310" | ||
fix = true | ||
select = [ | ||
"F", # Enable all pyflakes rules | ||
"RUF100", # Ban unused `# noqa` comments | ||
"PGH004", # Ban blanket `# noqa` comments (only ignore specific error codes) | ||
] | ||
unfixable = [ | ||
# The autofixes sometimes do the wrong things for these; | ||
# it's better to have to manually look at the code and see how it needs fixing | ||
"F841", # Detects unused variables | ||
"F601", # Detects dictionaries that have duplicate keys | ||
"F602", # Also detects dictionaries that have duplicate keys | ||
] |