2018-09-11 11:51:47 -05:00
|
|
|
:orphan:
|
|
|
|
|
2018-09-07 08:57:36 -05:00
|
|
|
.. _testing_pep8:
|
|
|
|
|
2017-04-28 09:08:26 +01: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 09:08:26 +01:00
|
|
|
|
|
|
|
Running Locally
|
|
|
|
===============
|
|
|
|
|
2017-07-13 20:46:31 +02:00
|
|
|
The `PEP 8`_ check can be run locally with::
|
2017-04-28 09:08:26 +01:00
|
|
|
|
|
|
|
|
2019-08-01 22:25:11 -07:00
|
|
|
ansible-test sanity --test pep8 [file-or-directory-path-to-check] ...
|
2017-04-28 09:08:26 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.. _PEP 8: https://www.python.org/dev/peps/pep-0008/
|
2018-05-14 15:41:47 -07:00
|
|
|
.. _pycodestyle: https://pypi.org/project/pycodestyle/
|