update isort version (#1)

This commit is contained in:
Wenwei Zhang 2022-02-09 20:05:26 +08:00 committed by GitHub
parent 867bac5172
commit e6652850c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 10 deletions

View File

@ -3,12 +3,8 @@ repos:
rev: 3.8.3 rev: 3.8.3
hooks: hooks:
- id: flake8 - id: flake8
- repo: https://github.com/asottile/seed-isort-config - repo: https://github.com/PyCQA/isort
rev: v2.2.0 rev: 5.10.1
hooks:
- id: seed-isort-config
- repo: https://github.com/timothycrosley/isort
rev: 4.3.21
hooks: hooks:
- id: isort - id: isort
- repo: https://github.com/pre-commit/mirrors-yapf - repo: https://github.com/pre-commit/mirrors-yapf

View File

@ -1,9 +1,9 @@
[isort] [isort]
line_length = 79 line_length = 79
multi_line_output = 0 multi_line_output = 0
known_standard_library = setuptools extra_standard_library = setuptools
known_first_party = mmengine known_first_party = mmengine
known_third_party = yaml known_third_party = pytest,yaml
no_lines_before = STDLIB,LOCALFOLDER no_lines_before = STDLIB,LOCALFOLDER
default_section = THIRDPARTY default_section = THIRDPARTY
@ -13,6 +13,4 @@ BLANK_LINE_BEFORE_NESTED_CLASS_OR_DEF = true
SPLIT_BEFORE_EXPRESSION_AFTER_OPENING_PAREN = true SPLIT_BEFORE_EXPRESSION_AFTER_OPENING_PAREN = true
[codespell] [codespell]
skip = *.ipynb
quiet-level = 3
ignore-words-list = nd ignore-words-list = nd