pep8: Issue on Noble (U. 24.04) with pylint

Use pylint 3.2.0 on Noble.

Change-Id: I0128b869b64df239d16c9998c4642d5c19dd8e59
This commit is contained in:
elajkat 2024-12-04 12:09:17 +01:00
parent 3f348f816c
commit 4a7fbb21f6
4 changed files with 7 additions and 2 deletions

View File

@ -126,6 +126,7 @@ class TaasAgentRpcCallback(api.TaasAgentRpcCallbackMixin):
LOG.debug("Invoking Driver for %(func_name)s from agent", LOG.debug("Invoking Driver for %(func_name)s from agent",
{'func_name': func_name}) {'func_name': func_name})
status_msg = {}
if func_name != 'periodic_tasks': if func_name != 'periodic_tasks':
func_dict = self.func_dict[func_name] func_dict = self.func_dict[func_name]
status_msg = {'id': args[func_dict['msg_name']]['id']} status_msg = {'id': args[func_dict['msg_name']]['id']}

View File

@ -263,6 +263,7 @@ class SriovNicTaasDriver(taas_base.TaasAgentDriver):
ts_port = tap_flow_msg['tap_service_port'] ts_port = tap_flow_msg['tap_service_port']
vlan_filter = tap_flow_msg['tap_flow']['vlan_filter'] vlan_filter = tap_flow_msg['tap_flow']['vlan_filter']
direction = tap_flow_msg['tap_flow']['direction'] direction = tap_flow_msg['tap_flow']['direction']
vf_to_vf_all_vlans = False
LOG.debug("SRIOV Driver: Inside delete_tap_flow: " LOG.debug("SRIOV Driver: Inside delete_tap_flow: "
"SRC Port-id: %(src_port_id)s, " "SRC Port-id: %(src_port_id)s, "

View File

@ -11,7 +11,5 @@ testresources>=2.0.1 # Apache-2.0/BSD
testscenarios>=0.5.0 # Apache-2.0/BSD testscenarios>=0.5.0 # Apache-2.0/BSD
testtools>=2.4.0 # MIT testtools>=2.4.0 # MIT
astroid>=2.12.4 # LGPLv2.1
pylint==2.17.4 # GPLv2
isort==5.10.1 # MIT isort==5.10.1 # MIT
WebTest>=2.0.27 # MIT WebTest>=2.0.27 # MIT

View File

@ -27,6 +27,11 @@ allowlist_externals =
sitepackages = True sitepackages = True
[testenv:pep8] [testenv:pep8]
deps =
{[testenv]deps}
bashate>=2.1.1 # Apache-2.0
bandit>=1.7.5 # Apache-2.0
pylint==3.2.0 # GPLv2
commands = commands =
flake8 flake8
pylint --version pylint --version