2018-09-11 18:51:47 +02:00
|
|
|
:orphan:
|
|
|
|
|
2018-09-07 15:57:36 +02:00
|
|
|
.. _testing_pep8:
|
|
|
|
|
2017-04-28 10:08:26 +02:00
|
|
|
*****
|
|
|
|
PEP 8
|
|
|
|
*****
|
|
|
|
|
|
|
|
.. contents:: Topics
|
|
|
|
|
2017-07-13 20:46:31 +02:00
|
|
|
`PEP 8`_ style guidelines are enforced by `pycodestyle`_ on all python files in the repository by default.
|
2017-04-28 10:08:26 +02:00
|
|
|
|
|
|
|
Running Locally
|
|
|
|
===============
|
|
|
|
|
2017-07-13 20:46:31 +02:00
|
|
|
The `PEP 8`_ check can be run locally with::
|
2017-04-28 10:08:26 +02:00
|
|
|
|
|
|
|
|
2019-08-02 07:25:11 +02:00
|
|
|
ansible-test sanity --test pep8 [file-or-directory-path-to-check] ...
|
2017-04-28 10:08:26 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.. _PEP 8: https://www.python.org/dev/peps/pep-0008/
|
2018-05-15 00:41:47 +02:00
|
|
|
.. _pycodestyle: https://pypi.org/project/pycodestyle/
|