-
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.
…16006) See #15951 for the original discussion and reviews. This is just the first half of that PR (reaching parity with `flake8-builtins` without adding any new configuration options) split out for nicer changelog entries. For posterity, here's a script for generating the module structure that was useful for interactive testing and creating the table [here](#15951 (comment)). The results for this branch are the same as the `Strict` column there, as expected. ```shell mkdir abc collections foobar urlparse for i in */ do touch $i/__init__.py done cp -r abc foobar collections/. cp -r abc collections foobar/. touch ruff.toml touch foobar/logging.py ``` --------- Co-authored-by: Micha Reiser <micha@reiser.io>
- Loading branch information
1 parent
efa8a3d
commit d4a5772
Showing
10 changed files
with
250 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
Empty file.
Empty file.
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
4 changes: 4 additions & 0 deletions
4
...f_linter__rules__flake8_builtins__tests__A005_A005__modules__utils__logging.py_false.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,4 @@ | ||
--- | ||
source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs | ||
--- | ||
logging.py:1:1: A005 Module `logging` shadows a Python standard-library module |
4 changes: 4 additions & 0 deletions
4
...ff_linter__rules__flake8_builtins__tests__A005_A005__modules__utils__logging.py_root.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,4 @@ | ||
--- | ||
source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs | ||
--- | ||
logging.py:1:1: A005 Module `logging` shadows a Python standard-library module |
4 changes: 4 additions & 0 deletions
4
...uff_linter__rules__flake8_builtins__tests__A005_A005__modules__utils__logging.py_src.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,4 @@ | ||
--- | ||
source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs | ||
--- | ||
logging.py:1:1: A005 Module `logging` shadows a Python standard-library module |
4 changes: 4 additions & 0 deletions
4
...ff_linter__rules__flake8_builtins__tests__A005_A005__modules__utils__logging.py_true.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,4 @@ | ||
--- | ||
source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs | ||
--- | ||
logging.py:1:1: A005 Module `logging` shadows a Python standard-library module |