Skip to content

Commit

Permalink
new snaps
Browse files Browse the repository at this point in the history
  • Loading branch information
snowdrop4 committed Nov 27, 2024
1 parent 3de5771 commit d261a0e
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,38 @@
source: crates/ruff_linter/src/rules/pep8_naming/mod.rs
snapshot_kind: text
---
N811.py:2:8: N811 Constant `CON` imported as non-constant `c`
N811.py:1:8: N811 Constant `CONST` imported as non-constant `const`
|
1 | # Error
2 | import mod.CON as c
| ^^^^^^^^^^^^ N811
3 | import mod.CONST as const
4 | from mod import CONSTANT as constant
|

N811.py:3:8: N811 Constant `CONST` imported as non-constant `const`
|
1 | # Error
2 | import mod.CON as c
3 | import mod.CONST as const
1 | import mod.CONST as const
| ^^^^^^^^^^^^^^^^^^ N811
4 | from mod import CONSTANT as constant
5 | from mod import ANOTHER_CONSTANT as another_constant
2 | from mod import CONSTANT as constant
3 | from mod import ANOTHER_CONSTANT as another_constant
|

N811.py:4:17: N811 Constant `CONSTANT` imported as non-constant `constant`
N811.py:2:17: N811 Constant `CONSTANT` imported as non-constant `constant`
|
2 | import mod.CON as c
3 | import mod.CONST as const
4 | from mod import CONSTANT as constant
1 | import mod.CONST as const
2 | from mod import CONSTANT as constant
| ^^^^^^^^^^^^^^^^^^^^ N811
5 | from mod import ANOTHER_CONSTANT as another_constant
3 | from mod import ANOTHER_CONSTANT as another_constant
4 | import mod.CON as c
|

N811.py:5:17: N811 Constant `ANOTHER_CONSTANT` imported as non-constant `another_constant`
N811.py:3:17: N811 Constant `ANOTHER_CONSTANT` imported as non-constant `another_constant`
|
3 | import mod.CONST as const
4 | from mod import CONSTANT as constant
5 | from mod import ANOTHER_CONSTANT as another_constant
1 | import mod.CONST as const
2 | from mod import CONSTANT as constant
3 | from mod import ANOTHER_CONSTANT as another_constant
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ N811
6 |
7 | # Ok
4 | import mod.CON as c
|

N811.py:4:8: N811 Constant `CON` imported as non-constant `c`
|
2 | from mod import CONSTANT as constant
3 | from mod import ANOTHER_CONSTANT as another_constant
4 | import mod.CON as c
| ^^^^^^^^^^^^ N811
5 |
6 | import django.db.models.Q as Query1
|
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,28 @@
source: crates/ruff_linter/src/rules/pep8_naming/mod.rs
snapshot_kind: text
---
N814.py:2:8: N814 Camelcase `Camel` imported as constant `CAMEL`
N814.py:1:8: N814 Camelcase `Camel` imported as constant `CAMEL`
|
1 | # Error
2 | import mod.Camel as CAMEL
1 | import mod.Camel as CAMEL
| ^^^^^^^^^^^^^^^^^^ N814
3 | from mod import CamelCase as CAMELCASE
4 | from mod import AnotherCamelCase as ANOTHER_CAMELCASE
2 | from mod import CamelCase as CAMELCASE
3 | from mod import AnotherCamelCase as ANOTHER_CAMELCASE
|

N814.py:3:17: N814 Camelcase `CamelCase` imported as constant `CAMELCASE`
N814.py:2:17: N814 Camelcase `CamelCase` imported as constant `CAMELCASE`
|
1 | # Error
2 | import mod.Camel as CAMEL
3 | from mod import CamelCase as CAMELCASE
1 | import mod.Camel as CAMEL
2 | from mod import CamelCase as CAMELCASE
| ^^^^^^^^^^^^^^^^^^^^^^ N814
4 | from mod import AnotherCamelCase as ANOTHER_CAMELCASE
3 | from mod import AnotherCamelCase as ANOTHER_CAMELCASE
|

N814.py:4:17: N814 Camelcase `AnotherCamelCase` imported as constant `ANOTHER_CAMELCASE`
N814.py:3:17: N814 Camelcase `AnotherCamelCase` imported as constant `ANOTHER_CAMELCASE`
|
2 | import mod.Camel as CAMEL
3 | from mod import CamelCase as CAMELCASE
4 | from mod import AnotherCamelCase as ANOTHER_CAMELCASE
1 | import mod.Camel as CAMEL
2 | from mod import CamelCase as CAMELCASE
3 | from mod import AnotherCamelCase as ANOTHER_CAMELCASE
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ N814
5 |
6 | # Ok
4 |
5 | import mod.AppleFruit as A
|

0 comments on commit d261a0e

Please sign in to comment.