Skip to content

Commit c99f1c0

Browse files
authored
Merge pull request #4695 from c-po/mandatory-unused-imports-check
T7787: Makefile check for unused-imports should be mandatory
2 parents 4e0ed81 + 5fee020 commit c99f1c0

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed

.github/workflows/check-unused-imports.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

Makefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ check_migration_scripts_executable:
119119
pylint: interface_definitions
120120
@echo Running "pylint --errors-only ..."
121121
@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*)
122+
@echo Running "pylint to check for unused imports ..."
123+
@PYTHONPATH=python/ pylint --disable=all --enable=W0611 $(shell git ls-files *.py src/migration-scripts src/services)
122124

123125
.PHONY: j2lint
124126
j2lint:
@@ -131,10 +133,6 @@ endif
131133
sonar:
132134
sonar-scanner -X -Dsonar.login=${SONAR_TOKEN}
133135

134-
.PHONY: unused-imports
135-
unused-imports:
136-
@pylint --disable=all --enable=W0611 $(shell git ls-files *.py src/migration-scripts src/services)
137-
138136
deb:
139137
dpkg-buildpackage -uc -us -tc -b
140138

0 commit comments

Comments
 (0)