From 9c5d3127432e5ddbb56e1650b39aa510d9fcae44 Mon Sep 17 00:00:00 2001 From: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com> Date: Tue, 8 Feb 2022 19:51:04 +0800 Subject: [PATCH] Upgrade the version of isort (#4) * Upgrade the version of isort * fix format --- .pre-commit-config.yaml | 8 ++------ setup.cfg | 4 ++-- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c461b49..9fd4530 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 225883b..bbba43a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -12,7 +12,7 @@ split_before_expression_after_opening_paren = true [isort] line_length = 79 multi_line_output = 0 -known_standard_library = pkg_resources,setuptools,logging,os,warnings,abc -known_third_party =yaml +extra_standard_library = pkg_resources,setuptools,logging,os,warnings,abc +known_third_party = yaml no_lines_before = STDLIB,LOCALFOLDER default_section = THIRDPARTY