pre-commit: port to python3
This commit is contained in:
parent
099b45fcca
commit
d42c612c9a
@ -71,8 +71,8 @@ cmd_exists() {
|
|||||||
command -v $1 1>/dev/null
|
command -v $1 1>/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
if cmd_exists pyflakes-python2; then
|
if cmd_exists pyflakes-python3; then
|
||||||
PYFLAKES=pyflakes-python2
|
PYFLAKES=pyflakes-python3
|
||||||
elif cmd_exists pyflakes; then
|
elif cmd_exists pyflakes; then
|
||||||
PYFLAKES=pyflakes
|
PYFLAKES=pyflakes
|
||||||
else
|
else
|
||||||
@ -80,8 +80,8 @@ else
|
|||||||
warn "pyflakes is not installed, using dummy placeholder!"
|
warn "pyflakes is not installed, using dummy placeholder!"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if cmd_exists pep8-python2; then
|
if cmd_exists pep8-python3; then
|
||||||
PEP8=pep8-python2
|
PEP8=pep8-python3
|
||||||
elif cmd_exists pep8; then
|
elif cmd_exists pep8; then
|
||||||
PEP8=pep8
|
PEP8=pep8
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user