summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Bachelier <laurent@bachelier.name>2019-08-29 12:18:13 +0200
committerLaurent Bachelier <laurent@bachelier.name>2019-08-29 12:18:13 +0200
commit1875103e8ab61c3d2b79cf348522390c712dcbf0 (patch)
tree3fecde18311044c108c417bb9423c1124cd6706c
parentModule options for desktops (diff)
downloadpublic-dotfiles-1875103e8ab61c3d2b79cf348522390c712dcbf0.tar.xz
Use Python 3 by default to lint
-rwxr-xr-xbase/.vim/pythonlint.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/base/.vim/pythonlint.sh b/base/.vim/pythonlint.sh
index a5aa99c..fe027bd 100755
--- a/base/.vim/pythonlint.sh
+++ b/base/.vim/pythonlint.sh
@@ -1,4 +1,7 @@
-#!/bin/bash -ue
+#!/bin/bash -u
+EPYTHON=$(eselect python show --python3)
+[ -n "${EPYTHON}" ] && export EPYTHON
+set -e
# fail on pyflakes errors
flake8 --select=E9,F "$@"
# if no pyflakes errors, run isort + pep8