-
Notifications
You must be signed in to change notification settings - Fork 792
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prefer Ruff over isort for more efficient and complete import sorting…
… and grouping (#2220)
- Loading branch information
Showing
6 changed files
with
35 additions
and
21 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 was deleted.
Oops, something went wrong.
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,18 @@ | ||
target-version = "py37" | ||
|
||
[lint] | ||
select = ["I"] | ||
|
||
[lint.isort] | ||
combine-as-imports = true | ||
# Because pywin32 has a mix of relative and absolute imports, with undetectable first-party c-extensions | ||
# This makes import grouping more consistent | ||
detect-same-package = false | ||
known-third-party = [ | ||
"__main__", | ||
# This forces distutils imports to always be after setuptools | ||
# setuptools must be imported before distutils because it monkey-patches it. | ||
# distutils is also removed in Python 3.12 and deprecated with setuptools | ||
"distutils", | ||
] | ||
extra-standard-library = ["setuptools"] |
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