forked from VimPlug/jedi-vim
qa: add flake8 to check make target
This commit is contained in:
committed by
Dave Halter
parent
66b6a20041
commit
ee0f759a2e
@@ -12,4 +12,4 @@ install:
|
|||||||
fi
|
fi
|
||||||
script:
|
script:
|
||||||
- vim --version
|
- vim --version
|
||||||
- make "$ENV"
|
- make --keep-going "$ENV"
|
||||||
|
|||||||
20
Makefile
20
Makefile
@@ -1,16 +1,26 @@
|
|||||||
test:
|
test:
|
||||||
py.test
|
pytest test_*.py
|
||||||
|
|
||||||
build:
|
build:
|
||||||
mkdir $@
|
mkdir $@
|
||||||
|
|
||||||
build/vint: | build
|
build/vint: | build
|
||||||
virtualenv -p python3.6 $@
|
virtualenv -p python3.6 $@
|
||||||
$@/bin/pip install vim-vint==0.3.19
|
$@/bin/pip install vim-vint==0.3.19
|
||||||
check: LINT_FILES:=after autoload ftplugin plugin
|
|
||||||
check: build/vint
|
build/flake8: | build
|
||||||
build/vint/bin/vint $(LINT_FILES)
|
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:
|
clean:
|
||||||
rm -rf build
|
rm -rf build
|
||||||
|
|
||||||
.PHONY: test check clean
|
.PHONY: test check clean vint flake8
|
||||||
|
|||||||
Reference in New Issue
Block a user