Update to latest pep8/code style versions

Update to latest versions for pep8 tox environment, correct any failures
created by change.

Change-Id: I605193dacc5e6be5c664b8daab44be16065b154d
This commit is contained in:
Jay Faulkner 2023-12-28 14:23:05 -08:00
parent 0853a08d1e
commit fe48440326
2 changed files with 6 additions and 6 deletions

View File

@ -1278,7 +1278,7 @@ def _check_steps(steps, step_type, schema):
for step in steps:
eocn = step.get('execute_on_child_nodes')
child_nodes = step.get('limit_child_node_execution')
if eocn and type(child_nodes) == list:
if eocn and isinstance(child_nodes, list):
# Extract each element, validate permission to access node.
for entry in child_nodes:
if not uuidutils.is_uuid_like(entry):

10
tox.ini
View File

@ -41,12 +41,12 @@ commands = {toxinidir}/tools/states_to_dot.py -f {toxinidir}/doc/source/images/s
[testenv:pep8]
usedevelop = False
deps=
hacking~=6.0.0 # Apache-2.0
doc8>=0.6.0 # Apache-2.0
hacking~=6.1.0 # Apache-2.0
doc8~=1.1.0 # Apache-2.0
pycodestyle>=2.0.0,<3.0.0 # MIT
flake8-import-order>=0.17.1 # LGPLv3
Pygments>=2.2.0 # BSD
bashate>=0.5.1 # Apache-2.0
flake8-import-order~=0.18.0 # LGPLv3
Pygments~=2.17.0 # BSD
bashate~=2.1.0 # Apache-2.0
allowlist_externals = bash
{toxinidir}/tools/run_bashate.sh
{toxinidir}/tools/check-releasenotes.py