Back to Ansible

pep8

docs/docsite/rst/dev_guide/testing/sanity/pep8.rst

2.21.0b3493 B
Original Source

.. _testing_pep8:

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:

.. code-block:: shell

ansible-test sanity --test pep8 [file-or-directory-path-to-check] ...

.. _PEP 8: https://www.python.org/dev/peps/pep-0008/ .. _pycodestyle: https://pypi.org/project/pycodestyle/