Skip to content

Commit

Permalink
Simplify isort and flake8 configs
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Jan 3, 2022
1 parent c6ceb4b commit 033ef42
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 16 deletions.
2 changes: 2 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ exclude =
./venv*
.eggs/
./acsoo/templates/**
per-file-ignores=
__init__.py:F401
9 changes: 1 addition & 8 deletions .isort.cfg
Original file line number Diff line number Diff line change
@@ -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
8 changes: 0 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 033ef42

Please sign in to comment.