From 18c9d7d95c4aefaa6ba6ac029ae0cdd1469daeb4 Mon Sep 17 00:00:00 2001 From: ZwwWayne Date: Tue, 8 Feb 2022 17:49:47 +0800 Subject: [PATCH] update isort --- .pre-commit-config.yaml | 8 ++------ setup.cfg | 6 ++---- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 75f10a1236..8438f9f865 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,12 +3,8 @@ repos: rev: 3.8.3 hooks: - id: flake8 - - repo: https://github.com/asottile/seed-isort-config - rev: v2.2.0 - hooks: - - id: seed-isort-config - - repo: https://github.com/timothycrosley/isort - rev: 4.3.21 + - repo: https://github.com/PyCQA/isort + rev: 5.10.1 hooks: - id: isort - repo: https://github.com/pre-commit/mirrors-yapf diff --git a/setup.cfg b/setup.cfg index aefea60003..ceb4115e32 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,9 +1,9 @@ [isort] line_length = 79 multi_line_output = 0 -known_standard_library = setuptools +extra_standard_library = setuptools known_first_party = mmengine -known_third_party = yaml +known_third_party = pytest,yaml no_lines_before = STDLIB,LOCALFOLDER default_section = THIRDPARTY @@ -13,6 +13,4 @@ BLANK_LINE_BEFORE_NESTED_CLASS_OR_DEF = true SPLIT_BEFORE_EXPRESSION_AFTER_OPENING_PAREN = true [codespell] -skip = *.ipynb -quiet-level = 3 ignore-words-list = nd