From 033ef4275eede6fcdb5c796505368372b6d03aec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Mon, 3 Jan 2022 23:38:17 +0100 Subject: [PATCH] Simplify isort and flake8 configs --- .flake8 | 2 ++ .isort.cfg | 9 +-------- .pre-commit-config.yaml | 8 -------- 3 files changed, 3 insertions(+), 16 deletions(-) diff --git a/.flake8 b/.flake8 index 73568e1..8c7c8e8 100644 --- a/.flake8 +++ b/.flake8 @@ -14,3 +14,5 @@ exclude = ./venv* .eggs/ ./acsoo/templates/** +per-file-ignores= + __init__.py:F401 diff --git a/.isort.cfg b/.isort.cfg index a5331e9..f238bf7 100644 --- a/.isort.cfg +++ b/.isort.cfg @@ -1,9 +1,2 @@ [settings] -; see https://github.com/ambv/black -multi_line_output=3 -include_trailing_comma=True -force_grid_wrap=0 -combine_as_imports=True -use_parentheses=True -line_length=88 -known_third_party = appdirs,click,httpx,pkg_resources,pylint,pytest,setuptools +profile = black diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 58c4b22..6921921 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,18 +27,10 @@ repos: name: flake8 except __init__.py exclude: /__init__\.py$ additional_dependencies: ["flake8-bugbear==20.1.4"] - - id: flake8 - name: flake8 only __init__.py - args: [--extend-ignore=F401] # ignore imported unused in __init__.py - files: __init__.py - repo: https://github.com/asottile/pyupgrade rev: v2.31.0 hooks: - id: pyupgrade -- repo: https://github.com/asottile/seed-isort-config - rev: v2.2.0 - hooks: - - id: seed-isort-config - repo: https://github.com/pre-commit/mirrors-isort rev: v5.10.1 hooks: