Use only pre-commit's flake8.

pull/412/head
William Ting 8 years ago
parent a9c892f713
commit e57956cc1c

@ -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

@ -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

@ -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

Loading…
Cancel
Save