diff options
| author | Christian Breunig <christian@breunig.cc> | 2025-09-17 21:18:13 +0200 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2025-09-17 21:18:13 +0200 |
| commit | a5b55e588acff8c07a96c02b523160be725f00ee (patch) | |
| tree | 050bd148d242a26e9bc3ab6c8932452956c50acc | |
| parent | 6af9055be9870effefe802c9fd7b3a9d6aec9413 (diff) | |
| download | vyos-1x-a5b55e588acff8c07a96c02b523160be725f00ee.tar.gz vyos-1x-a5b55e588acff8c07a96c02b523160be725f00ee.zip | |
Makefile: T7787: error out early if pylint fails
| -rw-r--r-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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: |
