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