From ee0f759a2e4238c9a69c7fc1a1458b8597d98ad6 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sun, 15 Jul 2018 20:52:35 +0200 Subject: [PATCH] qa: add flake8 to check make target --- .travis.yml | 2 +- Makefile | 20 +++++++++++++++----- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index fe25db3..37cdad3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,4 +12,4 @@ install: fi script: - vim --version - - make "$ENV" + - make --keep-going "$ENV" diff --git a/Makefile b/Makefile index 57b00b2..4e022e2 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,26 @@ test: - py.test + pytest test_*.py build: mkdir $@ + build/vint: | build virtualenv -p python3.6 $@ $@/bin/pip install vim-vint==0.3.19 -check: LINT_FILES:=after autoload ftplugin plugin -check: build/vint - build/vint/bin/vint $(LINT_FILES) + +build/flake8: | build + virtualenv -p python3.6 $@ + $@/bin/pip install flake8==3.5.0 + +vint: build/vint + build/vint/bin/vint after autoload ftplugin plugin + +flake8: build/flake8 + build/flake8/bin/flake8 pythonx/jedi_*.py + +check: vint flake8 clean: rm -rf build -.PHONY: test check clean +.PHONY: test check clean vint flake8