From 43487c6581caf0e0f3988d156d15b2ff6df129d3 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Mon, 13 Feb 2023 10:09:05 -0800 Subject: [PATCH] ansible-test - Enable unused-import pylint rule (#79912) This was previously enabled for core. This change enables it for collections. --- changelogs/fragments/ansible-test-unused-import-collections.yml | 2 ++ .../_util/controller/sanity/pylint/config/collection.cfg | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/ansible-test-unused-import-collections.yml 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