-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-enable import sorting disabled by flake8:noqa directive when using…
… ruff linter (#6946) * Replace wrong ruff:noqa directive with per-file-ignores setting * Remove unnecessary noqa F401 * Replace isort:skip with isort:split * Fix import sorting * Replace inline noqa:F401 with per-file
- Loading branch information
1 parent
43fd659
commit 1b59c75
Showing
9 changed files
with
26 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# ruff: noqa | ||
|
||
__all__ = [ | ||
"Audio", | ||
"Array2D", | ||
|
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 |
---|---|---|
@@ -1 +1 @@ | ||
from .parallel import parallel_backend, parallel_map, ParallelBackendConfig # noqa F401 | ||
from .parallel import ParallelBackendConfig, parallel_backend, parallel_map |
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 |
---|---|---|
@@ -1,13 +1,11 @@ | ||
# isort: skip_file | ||
|
||
# ruff: noqa: F401 | ||
# This is the module that test_patching.py uses to test patch_submodule() | ||
|
||
import os # noqa: F401 - this is just for tests | ||
import os as renamed_os # noqa: F401 - this is just for tests | ||
from os import path # noqa: F401 - this is just for tests | ||
from os import path as renamed_path # noqa: F401 - this is just for tests | ||
from os.path import join # noqa: F401 - this is just for tests | ||
from os.path import join as renamed_join # noqa: F401 - this is just for tests | ||
import os | ||
import os as renamed_os | ||
from os import path | ||
from os import path as renamed_path | ||
from os.path import join | ||
from os.path import join as renamed_join | ||
|
||
|
||
open = open # noqa we just need to have a builtin inside this module to test it properly | ||
open = open # we just need to have a builtin inside this module to test it properly |