Ansible Community Documentation
You are reading an older version of the Ansible documentation. Use the version selection to the left if you want the latest (stable) released version.
You are reading an older version of the Ansible documentation. Use the version selection to the left if you want the latest (stable) released version.
pep8
Python static analysis for PEP 8 style guideline compliance.
PEP 8 style guidelines are enforced by pycodestyle on all python files in the repository by default.
Running locally
The PEP 8 check can be run locally as follows:
ansible-test sanity --test pep8 [file-or-directory-path-to-check] ...