Skip to content

Commit dd54023

Browse files
Added ungrouped-imports message example (#6238)
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
1 parent 5be3a46 commit dd54023

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ repos:
3737
rev: 5.10.1
3838
hooks:
3939
- id: isort
40-
exclude: doc/data/messages/(r/reimported|w/wrong-import-order)/bad.py
40+
exclude: doc/data/messages/(r/reimported|w/wrong-import-order|u/ungrouped-imports)/bad.py
4141
- repo: https://github.com/psf/black
4242
rev: 22.3.0
4343
hooks:
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import logging
2+
import os
3+
import sys
4+
import logging.config # [ungrouped-imports]
5+
from logging.handlers import WatchedFileHandler
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import logging
2+
import logging.config
3+
import os
4+
import sys
5+
from logging.handlers import FileHandler

0 commit comments

Comments
 (0)