From 7d120ab42e3b577354759337ea3b4c0e0c650566 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Sat, 23 Mar 2024 12:28:38 +0100 Subject: [PATCH] Ignore pylint warnings for construct that does not work with Python 2 (#821) * Ignore pylint warnings for construct that does not work with Python 2. * Revert "Ignore pylint warnings for construct that does not work with Python 2." This reverts commit 92c19c78dc95da14dd4385fcf3cec843f16ded56. * Different approach: use ignore.txt since otherwise ansible-core 2.14 tests fail. --- tests/sanity/ignore-2.17.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/sanity/ignore-2.17.txt b/tests/sanity/ignore-2.17.txt index 12e0b26f..f1974bd5 100644 --- a/tests/sanity/ignore-2.17.txt +++ b/tests/sanity/ignore-2.17.txt @@ -1 +1,4 @@ plugins/modules/docker_container_copy_into.py validate-modules:undocumented-parameter # _max_file_size_for_diff is used by the action plugin +plugins/module_utils/_api/api/client.py pylint:use-yield-from # suggested construct does not work with Python 2 +plugins/module_utils/_api/utils/build.py pylint:use-yield-from # suggested construct does not work with Python 2 +tests/unit/plugins/module_utils/test_copy.py pylint:use-yield-from # suggested construct does not work with Python 2