ansible-collections / ibm_zos_core

Red Hat Ansible Certified Content for IBM Z
75 stars 44 forks source link

[Enabler] [pipeline] Add support for pyflakes into both AC and the pipeline #1505

Open ddimatos opened 1 month ago

ddimatos commented 1 month ago

Is there an existing issue for this?

Enabler description

Recently when testing with pyflakes, some valuable results came from the linter, their is value in adding this to the pipeline, you can see below one of its successful results:

(venv-2.16) pyflakes plugins/*
plugins/action/zos_copy.py:248:17: local variable 'base_name' is assigned to but never used
plugins/module_utils/job.py:388:17: local variable 'err' is assigned to but never used
plugins/module_utils/job.py:409:21: local variable 'err' is assigned to but never used
plugins/module_utils/job.py:466:29: local variable 'e' is assigned to but never used
plugins/module_utils/data_set.py:1031:9: local variable 'e' is assigned to but never used
plugins/modules/zos_blockinfile.py:459:15: '...'.format(...) has unused arguments at position(s): 3
plugins/modules/zos_blockinfile.py:459:15: '...'.format(...) is missing argument(s) for placeholder(s): 4

Ansible module

No response