diff --git a/changelogs/fragments/ansible-test-unused-import-collections.yml b/changelogs/fragments/ansible-test-unused-import-collections.yml new file mode 100644 index 00000000000..1f68dc5ba92 --- /dev/null +++ b/changelogs/fragments/ansible-test-unused-import-collections.yml @@ -0,0 +1,2 @@ +minor_changes: + - ansible-test - Enable the ``unused-import`` rule for the ``pylint`` sanity test for collections. diff --git a/test/lib/ansible_test/_util/controller/sanity/pylint/config/collection.cfg b/test/lib/ansible_test/_util/controller/sanity/pylint/config/collection.cfg index 627c80298cf..bf8f02821fd 100644 --- a/test/lib/ansible_test/_util/controller/sanity/pylint/config/collection.cfg +++ b/test/lib/ansible_test/_util/controller/sanity/pylint/config/collection.cfg @@ -109,7 +109,6 @@ disable= unsupported-delete-operation, unsupported-membership-test, unused-argument, - unused-import, unused-variable, unspecified-encoding, # always run with UTF-8 encoding enforced use-dict-literal, # ignoring as a common style issue