Below are the steps to reproduce this issue.
```
git clone https://github.com/openstack/watcher-tempest-plugin
cd watcher-tempest-plugin
tox -e pep8
```
Here is the traceback
```
chandankumar@raukadahlaptop:/tmp/watcher-tempest-plugin$ tox -e pep8
pep8: install_deps> pip install -chttps://releases.openstack.org/constraints/upper/master -r /tmp/watcher-tempest-plugin/test-requirements.txt
pep8: commands[0]> doc8 doc/source/ CONTRIBUTING.rst HACKING.rst README.rst
Scanning...
Validating...
/tmp/watcher-tempest-plugin/.tox/pep8/lib/python3.13/site-packages/doc8/parser.py:69: DeprecationWarning: The frontend.OptionParser class will be replaced by a subclass of argparse.ArgumentParser in Docutils 0.21 or later.
opt = frontend.OptionParser(components=[parser], defaults=defaults)
/usr/lib64/python3.13/optparse.py:1000: DeprecationWarning: The frontend.Option class will be removed in Docutils 0.21 or later.
option = self.option_class(*args, **kwargs)
/tmp/watcher-tempest-plugin/.tox/pep8/lib/python3.13/site-packages/doc8/parser.py:69: DeprecationWarning: The frontend.OptionParser class will be replaced by a subclass of argparse.ArgumentParser in Docutils 0.21 or later.
opt = frontend.OptionParser(components=[parser], defaults=defaults)
/usr/lib64/python3.13/optparse.py:1000: DeprecationWarning: The frontend.Option class will be removed in Docutils 0.21 or later.
option = self.option_class(*args, **kwargs)
/tmp/watcher-tempest-plugin/.tox/pep8/lib/python3.13/site-packages/doc8/parser.py:69: DeprecationWarning: The frontend.OptionParser class will be replaced by a subclass of argparse.ArgumentParser in Docutils 0.21 or later.
opt = frontend.OptionParser(components=[parser], defaults=defaults)
/usr/lib64/python3.13/optparse.py:1000: DeprecationWarning: The frontend.Option class will be removed in Docutils 0.21 or later.
option = self.option_class(*args, **kwargs)
/tmp/watcher-tempest-plugin/.tox/pep8/lib/python3.13/site-packages/doc8/parser.py:69: DeprecationWarning: The frontend.OptionParser class will be replaced by a subclass of argparse.ArgumentParser in Docutils 0.21 or later.
opt = frontend.OptionParser(components=[parser], defaults=defaults)
/usr/lib64/python3.13/optparse.py:1000: DeprecationWarning: The frontend.Option class will be removed in Docutils 0.21 or later.
option = self.option_class(*args, **kwargs)
/tmp/watcher-tempest-plugin/.tox/pep8/lib/python3.13/site-packages/doc8/parser.py:69: DeprecationWarning: The frontend.OptionParser class will be replaced by a subclass of argparse.ArgumentParser in Docutils 0.21 or later.
opt = frontend.OptionParser(components=[parser], defaults=defaults)
/usr/lib64/python3.13/optparse.py:1000: DeprecationWarning: The frontend.Option class will be removed in Docutils 0.21 or later.
option = self.option_class(*args, **kwargs)
/tmp/watcher-tempest-plugin/.tox/pep8/lib/python3.13/site-packages/doc8/parser.py:69: DeprecationWarning: The frontend.OptionParser class will be replaced by a subclass of argparse.ArgumentParser in Docutils 0.21 or later.
opt = frontend.OptionParser(components=[parser], defaults=defaults)
/usr/lib64/python3.13/optparse.py:1000: DeprecationWarning: The frontend.Option class will be removed in Docutils 0.21 or later.
option = self.option_class(*args, **kwargs)
========
Total files scanned = 6
Total files ignored = 0
Total accumulated errors = 0
Detailed error counts:
- doc8.checks.CheckCarriageReturn = 0
- doc8.checks.CheckIndentationNoTab = 0
- doc8.checks.CheckMaxLineLength = 0
- doc8.checks.CheckNewlineEndOfFile = 0
- doc8.checks.CheckTrailingWhitespace = 0
- doc8.checks.CheckValidity = 0
pep8: commands[1]> flake8
pep8: commands[2]> bandit -r watcher_tempest_plugin -x tests -n5 -ll -s B320
/tmp/watcher-tempest-plugin/.tox/pep8/lib/python3.13/site-packages/bandit/core/utils.py:364: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
node = getattr(ast, name)
[main] INFO profile include tests: None
[main] INFO profile exclude tests: None
[main] INFO cli include tests: None
[main] INFO cli exclude tests: B320
[main] ERROR Unknown test found in profile: B320
pep8: exit 2 (0.11 seconds) /tmp/watcher-tempest-plugin> bandit -r watcher_tempest_plugin -x tests -n5 -ll -s B320 pid=95226
pep8: FAIL code 2 (12.45=setup[11.98]+cmd[0.13,0.23,0.11] seconds)
evaluation failed :( (12.49 seconds)
```
[main] ERROR Unknown test found in profile: B320 is the actual error.
Based on https://bandit.readthedocs.io/en/latest/plugins/index.html#complete-test-plugin-listing and https://github.com/PyCQA/bandit/commit/e4da0b351f89a82b5de8dd791cbdd963476b5a11 B320 got removed in last release.
It will break the pep8 job.
Fix proposed to branch: master /review. opendev. org/c/openstack /watcher- tempest- plugin/ +/939213
Review: https:/