diff --git a/changelogs/fragments/ansible-test-update.yml b/changelogs/fragments/ansible-test-update.yml index 3200457c814..ed58e33562a 100644 --- a/changelogs/fragments/ansible-test-update.yml +++ b/changelogs/fragments/ansible-test-update.yml @@ -4,3 +4,4 @@ minor_changes: - ansible-test - Disable the ``deprecated-`` prefixed ``pylint`` rules as their results vary by Python version. - ansible-test - Update the ``base`` and ``default`` containers. - ansible-test - Update sanity test requirements to latest available versions. + - ansible-test - Disable the ``pep8`` sanity test rules ``E701`` and ``E704`` to improve compatibility with ``black``. diff --git a/test/lib/ansible_test/_util/controller/sanity/pep8/current-ignore.txt b/test/lib/ansible_test/_util/controller/sanity/pep8/current-ignore.txt index 4d1de69240f..8fd5224b284 100644 --- a/test/lib/ansible_test/_util/controller/sanity/pep8/current-ignore.txt +++ b/test/lib/ansible_test/_util/controller/sanity/pep8/current-ignore.txt @@ -7,3 +7,7 @@ E741 # Unfortunately this means it also conflicts with the output from `black`. # See: https://github.com/PyCQA/pycodestyle/issues/373 E203 + +# The "multiple statements on one line" rules conflict with `black` for no-impl class and method defs. +E701 +E704