Skip to content

Commit

Permalink
Added wrong-import-order message example (#6239)
Browse files Browse the repository at this point in the history
* isort should ignore wrong-import-order/bad.py file

Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
  • Loading branch information
matusvalo and Pierre-Sassoulas authored Apr 9, 2022
1 parent 7a856be commit 2d363e4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ repos:
rev: 5.10.1
hooks:
- id: isort
exclude: doc/data/messages/r/reimported/bad.py
exclude: doc/data/messages/(r/reimported|w/wrong-import-order)/bad.py
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
Expand Down
4 changes: 4 additions & 0 deletions doc/data/messages/w/wrong-import-order/bad.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import os
from . import utils
import pylint # [wrong-import-order]
import sys # [wrong-import-order]
6 changes: 6 additions & 0 deletions doc/data/messages/w/wrong-import-order/good.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import os
import sys

import pylint

from . import utils

0 comments on commit 2d363e4

Please sign in to comment.