summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2025-09-17 21:18:13 +0200
committerChristian Breunig <christian@breunig.cc>2025-09-17 21:18:13 +0200
commita5b55e588acff8c07a96c02b523160be725f00ee (patch)
tree050bd148d242a26e9bc3ab6c8932452956c50acc
parent6af9055be9870effefe802c9fd7b3a9d6aec9413 (diff)
downloadvyos-1x-a5b55e588acff8c07a96c02b523160be725f00ee.tar.gz
vyos-1x-a5b55e588acff8c07a96c02b523160be725f00ee.zip
Makefile: T7787: error out early if pylint fails
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 369eb89a8..df967be8a 100644
--- a/Makefile
+++ b/Makefile
@@ -111,10 +111,10 @@ check_migration_scripts_executable:
.PHONE: pylint
pylint: interface_definitions
- @echo Running "pylint --errors-only ..."
- @PYTHONPATH=python/ pylint --errors-only $(shell git ls-files python/vyos/ifconfig/*.py python/vyos/utils/*.py src/conf_mode/*.py src/op_mode/*.py src/migration-scripts src/services/vyos*)
- @echo Running "pylint to check for unused imports ..."
- @PYTHONPATH=python/ pylint --disable=all --enable=W0611 $(shell git ls-files *.py src/migration-scripts src/services)
+ @echo Running "pylint ..."
+ @set -e; \
+ PYTHONPATH=python/ pylint --errors-only $(shell git ls-files python/vyos/ifconfig/*.py python/vyos/utils/*.py src/conf_mode/*.py src/op_mode/*.py src/migration-scripts src/services/vyos*); \
+ PYTHONPATH=python/ pylint --disable=all --enable=W0611 $(shell git ls-files *.py src/migration-scripts src/services)
.PHONY: j2lint
j2lint: