mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
Use only pre-commit's flake8.
This commit is contained in:
parent
a9c892f713
commit
e57956cc1c
@ -15,7 +15,11 @@
|
|||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
- id: fix-encoding-pragma
|
- id: fix-encoding-pragma
|
||||||
- id: flake8
|
- id: flake8
|
||||||
args: [--ignore=E731]
|
args:
|
||||||
|
- --ignore=E126
|
||||||
|
- --ignore=E128
|
||||||
|
- --ignore=E402
|
||||||
|
- --ignore=E731
|
||||||
- id: requirements-txt-fixer
|
- id: requirements-txt-fixer
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
- repo: git@github.com:asottile/reorder_python_imports.git
|
- repo: git@github.com:asottile/reorder_python_imports.git
|
||||||
|
6
Makefile
6
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 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
|
pandoc -s -w markdown docs/header.md docs/install.md docs/body.md -o README.md
|
||||||
|
|
||||||
flake8:
|
|
||||||
@tox -e flake8
|
|
||||||
|
|
||||||
pre-commit:
|
pre-commit:
|
||||||
@tox -e pre-commit -- install -f --install-hooks
|
@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
|
git archive --format=tar --prefix autojump_v$(VERSION)/ $(TAGNAME) | gzip > autojump_v$(VERSION).tar.gz
|
||||||
sha1sum 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
|
@find . -type f -iname '*.py[co]' -delete
|
||||||
tox
|
tox
|
||||||
tox -e flake8
|
|
||||||
|
|
||||||
test-fast: pre-commit
|
test-fast: pre-commit
|
||||||
@find . -type f -iname '*.py[co]' -delete
|
@find . -type f -iname '*.py[co]' -delete
|
||||||
|
11
tox.ini
11
tox.ini
@ -36,16 +36,5 @@ deps =
|
|||||||
command =
|
command =
|
||||||
pre-commit {posargs}
|
pre-commit {posargs}
|
||||||
|
|
||||||
[flake8]
|
|
||||||
filename =
|
|
||||||
*.py,
|
|
||||||
autojump
|
|
||||||
ignore =
|
|
||||||
E126,
|
|
||||||
E128
|
|
||||||
max-line-length = 131
|
|
||||||
max-complexity = 20
|
|
||||||
show-pep8 = True
|
|
||||||
|
|
||||||
[pytest]
|
[pytest]
|
||||||
norecursedirs = .git .tox docs
|
norecursedirs = .git .tox docs
|
||||||
|
Loading…
Reference in New Issue
Block a user