mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-28 21:31:26 -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
|
@ -77,7 +77,7 @@ def categorize_changes(paths, verbose_command=None):
|
|||
|
||||
# identify targeted integration tests (those which only target a single integration command)
|
||||
if 'integration' in verbose_command and tests.get(verbose_command):
|
||||
if not any('integration' in command for command in tests.keys() if command != verbose_command):
|
||||
if not any('integration' in command for command in tests if command != verbose_command):
|
||||
result += ' (targeted)'
|
||||
else:
|
||||
result = '%s' % tests
|
||||
|
@ -91,7 +91,7 @@ def categorize_changes(paths, verbose_command=None):
|
|||
if any(t == 'all' for t in commands[command]):
|
||||
commands[command] = set(['all'])
|
||||
|
||||
commands = dict((c, sorted(commands[c])) for c in commands.keys() if commands[c])
|
||||
commands = dict((c, sorted(commands[c])) for c in commands if commands[c])
|
||||
|
||||
return commands
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue