diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 10268ec..7095d21 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,11 @@ - id: end-of-file-fixer - id: fix-encoding-pragma - id: flake8 - args: [--ignore=E731] + args: + - --ignore=E126 + - --ignore=E128 + - --ignore=E402 + - --ignore=E731 - id: requirements-txt-fixer - id: trailing-whitespace - repo: git@github.com:asottile/reorder_python_imports.git diff --git a/Makefile b/Makefile index 358f22f..5466f00 100644 --- a/Makefile +++ b/Makefile @@ -13,9 +13,6 @@ docs: pandoc -s -w man docs/manpage_header.md docs/header.md docs/body.md -o docs/autojump.1 pandoc -s -w markdown docs/header.md docs/install.md docs/body.md -o README.md -flake8: - @tox -e flake8 - pre-commit: @tox -e pre-commit -- install -f --install-hooks @@ -41,10 +38,9 @@ tar: git archive --format=tar --prefix autojump_v$(VERSION)/ $(TAGNAME) | gzip > autojump_v$(VERSION).tar.gz sha1sum autojump_v$(VERSION).tar.gz -test: pre-commit lint +test: pre-commit @find . -type f -iname '*.py[co]' -delete tox - tox -e flake8 test-fast: pre-commit @find . -type f -iname '*.py[co]' -delete diff --git a/tox.ini b/tox.ini index 66eba89..1dfb82f 100644 --- a/tox.ini +++ b/tox.ini @@ -36,16 +36,5 @@ deps = command = pre-commit {posargs} -[flake8] -filename = - *.py, - autojump -ignore = - E126, - E128 -max-line-length = 131 -max-complexity = 20 -show-pep8 = True - [pytest] norecursedirs = .git .tox docs