build: Makefile: use _opt_pylint [ci skip] (#10720)
A separate rule it clearer, and allows for `make --keep-going lint` in general later. Ref: https://github.com/neovim/neovim/pull/10714
This commit is contained in:
parent
38a3af5dff
commit
0288ba6e38
11
Makefile
11
Makefile
|
@ -141,6 +141,11 @@ lualint: | build/.ran-cmake deps
|
||||||
pylint:
|
pylint:
|
||||||
flake8 contrib/ scripts/ src/ test/
|
flake8 contrib/ scripts/ src/ test/
|
||||||
|
|
||||||
|
# Run pylint only if flake8 is installed.
|
||||||
|
_opt_pylint:
|
||||||
|
@command -v flake8 && { $(MAKE) pylint; exit $$?; } \
|
||||||
|
|| echo "SKIP: pylint (flake8 not found)"
|
||||||
|
|
||||||
unittest: | nvim
|
unittest: | nvim
|
||||||
+$(BUILD_CMD) -C build unittest
|
+$(BUILD_CMD) -C build unittest
|
||||||
|
|
||||||
|
@ -182,11 +187,7 @@ appimage:
|
||||||
appimage-%:
|
appimage-%:
|
||||||
bash scripts/genappimage.sh $*
|
bash scripts/genappimage.sh $*
|
||||||
|
|
||||||
lint: check-single-includes clint lualint
|
lint: check-single-includes clint lualint _opt_pylint
|
||||||
@# Run pylint only if flake8 is installed.
|
|
||||||
@command -v flake8 \
|
|
||||||
&& { $(MAKE) pylint; exit $$?; } \
|
|
||||||
|| echo "SKIP: pylint (flake8 not found)"
|
|
||||||
|
|
||||||
# Generic pattern rules, allowing for `make build/bin/nvim` etc.
|
# Generic pattern rules, allowing for `make build/bin/nvim` etc.
|
||||||
# Does not work with "Unix Makefiles".
|
# Does not work with "Unix Makefiles".
|
||||||
|
|
Loading…
Reference in New Issue