mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-04 15:34:01 -07:00
Fix ansible-test pylint and pep8 issues. (#24245)
* Fix pylint useless-super-delegation issues. * Fix miscellaneous pylint issues. * Fix PEP 8 issues. * Fix warnings reported by PyCharm.
This commit is contained in:
parent
a93aa6dc04
commit
6522d703a1
15 changed files with 22 additions and 71 deletions
|
@ -4,7 +4,6 @@ from __future__ import absolute_import, print_function
|
|||
|
||||
import ast
|
||||
import os
|
||||
import uuid
|
||||
|
||||
from lib.util import (
|
||||
display,
|
||||
|
@ -110,7 +109,7 @@ def get_python_module_utils_imports(compile_targets):
|
|||
display.info('%s reports imports from parent package %s' % (virtual_util, parent_package), verbosity=6)
|
||||
|
||||
for module_util in sorted(imports):
|
||||
if not len(imports[module_util]):
|
||||
if not imports[module_util]:
|
||||
display.warning('No imports found which use the "%s" module_util.' % module_util)
|
||||
|
||||
return imports
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue