March 2019
Intermediate to advanced
412 pages
9h 49m
English
A third category of Ansible tests is the code-style category. These tests examine the syntax used in the Python files, ensuring a cohesive look across the code base. The code style enforced is defined by PEP8, a style guide for Python. More information is available in test/sanity/pep8/README.md. This style is enforced via the pep8 make target. If there are no errors, this target does not output any text; however, the return code can be verified. A return code of 0 means there were no errors:

Read now
Unlock full access