summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2025-09-05 07:41:44 +0200
committerGitHub <noreply@github.com>2025-09-05 07:41:44 +0200
commitc99f1c05879374a47b8981144cb0163bd3b69a88 (patch)
treeaf6f4369dd1f96d56346f1b7d4a131fb2b9cca45 /Makefile
parent4e0ed81965f0e3efd8054ccfc0403883864696e1 (diff)
parent5fee0201535fafceabd384ff3da3426e1fbd13fd (diff)
downloadvyos-1x-c99f1c05879374a47b8981144cb0163bd3b69a88.tar.gz
vyos-1x-c99f1c05879374a47b8981144cb0163bd3b69a88.zip
Merge pull request #4695 from c-po/mandatory-unused-imports-check
T7787: Makefile check for unused-imports should be mandatory
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 2 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 333505ef0..d6cefcf91 100644
--- a/Makefile
+++ b/Makefile
@@ -119,6 +119,8 @@ check_migration_scripts_executable:
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)
.PHONY: j2lint
j2lint:
@@ -131,10 +133,6 @@ endif
sonar:
sonar-scanner -X -Dsonar.login=${SONAR_TOKEN}
-.PHONY: unused-imports
-unused-imports:
- @pylint --disable=all --enable=W0611 $(shell git ls-files *.py src/migration-scripts src/services)
-
deb:
dpkg-buildpackage -uc -us -tc -b