最近更新的页面
no-main-display
As of Ansible 2.8, Display should no longer be imported from __main__. Display is now a singlet...
no-illegal-filenames
Files and directories should not contain illegal characters or names so that Ansible can be check...
no-get-exception
We created a function, ansible.module_utils.pycompat24.get_exception to help retrieve exceptions...
no-dict-itervalues
The dict.itervalues method has been removed in Python 3. There are two recommended alternatives:...
no-dict-iterkeys
The dict.iterkeys method has been removed in Python 3. Use the following instead: for KEY in DIC...
no-dict-iteritems
The dict.iteritems method has been removed in Python 3. There are two recommended alternatives: ...
no-basestring
Do not use isinstance(s, basestring) as basestring has been removed in Python3. You can import ...
no-assert
Do not use assert in production Ansible python code. When running Python with optimizations, Pyt...
mypy
The mypy static type checker is used to check the following code against each Python version sup...
line-endings
All files must use \n for line endings instead of \r\n.
integration-aliases
Integration tests are executed by ansible-test and reside in directories under test/integration...
Sanity Tests
The following sanity tests are available as --test options for ansible-test sanity when testing...
import
Ansible allows unchecked imports<allowed_unchecked_imports> of some libraries from specific dire...
ignores
Sanity tests for individual files can be skipped, and specific errors can be ignored. When to Ign...
future-import-boilerplate
Most Python files should include the following boilerplate at the top of the file, right after th...
empty-init
The __init__.py files under the following directories must be empty. For some of these (modules ...
deprecated-config
DOCUMENTATION config is scheduled for removal
compile
All Python source files must successfully compile using all supported Python versions. [!NOTE] Th...
changelog
Basic linting of changelog fragments with antsibull-changelog lint. One or more of the following ...
boilerplate
Python files should include the following boilerplate: from __future__ import annotations