From f9ced38512df0d07e3229104d584505b130e6fd4 Mon Sep 17 00:00:00 2001 From: Hugo Date: Fri, 3 Jan 2020 13:23:01 +0200 Subject: [PATCH] Add known_third_party to isort and pre-commit --- .pre-commit-config.yaml | 7 ++++++- setup.cfg | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ca39028..a401b22 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,13 +20,18 @@ repos: - id: flake8 additional_dependencies: [flake8-2020, flake8-implicit-str-concat] + - repo: https://github.com/asottile/seed-isort-config + rev: v1.9.4 + hooks: + - id: seed-isort-config + - repo: https://github.com/pre-commit/mirrors-isort rev: v4.3.21 hooks: - id: isort - repo: https://github.com/pre-commit/pygrep-hooks - rev: v1.4.2 + rev: v1.4.3 hooks: - id: python-check-blanket-noqa diff --git a/setup.cfg b/setup.cfg index a9810ce..69e5b6b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -4,3 +4,6 @@ universal = 1 [flake8] ignore = W503 max_line_length = 88 + +[tool:isort] +known_third_party = flaky,pkg_resources,pylast,pytest,setuptools