[PATCH 3/5] Accommodate and enable wildcard-import

0 views
Skip to first unread message

Rob Browning

unread,
Mar 14, 2026, 5:35:47 PM (10 days ago) Mar 14
to bup-...@googlegroups.com
Signed-off-by: Rob Browning <r...@defaultvalue.org>
Tested-by: Rob Browning <r...@defaultvalue.org>
---
.pylintrc | 1 +
GNUmakefile | 4 ++--
pylint | 5 ++++-
3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/.pylintrc b/.pylintrc
index 4180ac56..099d4d03 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -89,5 +89,6 @@ enable=
use-yield-from,
used-before-assignment,
useless-return,
+ wildcard-import,
wrong-import-order,
wrong-import-position
diff --git a/GNUmakefile b/GNUmakefile
index b5134a96..ec99470e 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -315,10 +315,10 @@ xdist_opt = $(if $(filter -j,$(parallel_opt)),-nauto,$(maybe_specific_n))
lint-lib: dev/bup-exec dev/bup-python $(bup_deps)
./pylint lib

-# unused-wildcard-import: we always "import * from wvpytest"
+# unused-wildcard-import: we often "import * from wvpytest"
.PHONY: lint-test
lint-test: dev/bup-exec dev/bup-python $(bup_deps)
- ./pylint -d unused-wildcard-import test/lib test/int
+ ./pylint -d unused-wildcard-import -d wildcard-import test/lib test/int

.PHONY: lint
lint: lint-lib lint-test
diff --git a/pylint b/pylint
index d0474b4f..59966865 100755
--- a/pylint
+++ b/pylint
@@ -40,7 +40,10 @@ if test "$#" -eq 0; then
set -x
dev/bup-python -m pylint lib
# unused-wildcard-import: we always "import * from wvpytest"
- dev/bup-python -m pylint -d unused-wildcard-import test/lib test/int
+ dev/bup-python -m pylint \
+ -d unused-wildcard-import \
+ -d wildcard-import \
+ test/lib test/int
else
set -x
exec dev/bup-python -m pylint "$@"
--
2.47.3

Reply all
Reply to author
Forward
0 new messages