Brief Description
-----------------
After running tox on gui repository, there have been found some errors.
sys.version_info < (3,) and warnings.warn(pre + "*" * 60 + msg + "*" * 60)
pep8 installed: alabaster==0.7.12,asn1crypto==0.24.0,Babel==2.6.0,certifi==2018.11.29,cffi==1.12.2,chardet==3.0.4,colorama==0.4.1,coverage==4.5.2,cryptography==2.6.1,django-nose==1.4.6,docutils==0.14,extras==1.0.0,fixtures==3.0.0,flake8==2.5.5,hacking==0.12.0,idna==2.8,imagesize==1.1.0,Jinja2==2.10,linecache2==1.0.0,MarkupSafe==1.1.1,mccabe==0.2.1,mock==2.0.0,mox3==0.27.0,nodeenv==1.3.3,nose==1.3.7,nose-exclude==0.5.0,nosehtmloutput==0.0.5,nosexcover==1.0.11,openstack.nose-plugin==0.11,oslosphinx==4.18.0,packaging==19.0,pbr==5.1.3,pep8==1.5.7,pycparser==2.19,pyflakes==0.8.1,Pygments==2.6.1,pyOpenSSL==19.0.0,pyparsing==2.3.1,python-mimeparse==1.6.0,pytz==2018.9,requests==2.21.0,selenium==3.141.0,six==1.12.0,snowballstemmer==1.2.1,Sphinx==1.8.4,sphinxcontrib-websupport==1.1.0,termcolor==1.1.0,testtools==2.3.0,traceback2==1.4.0,unittest2==1.1.0,urllib3==1.24.1,xvfbwrapper==0.2.9
pep8 runtests: PYTHONHASHSEED='3487288661'
pep8 runtests: commands[0] | flake8
./starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/host_topology/views.py:15:1: H306 imports not in alphabetical order (django.urls.reverse_lazy, django.http.httpresponse)
./starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/inventory/views.py:11:6: H304 No relative imports. 'from .cpu_functions import utils as icpu_utils' is a relative import
./starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/inventory/memories/forms.py:350:64: E502 the backslash is redundant between brackets
./starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/inventory/storages/lvg_params/forms.py:9:1: H306 imports not in alphabetical order (django.urls.reverse, django.core.validators)
./starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/dc_admin/dc_software_management/forms.py:163:53: H701 Empty localization string
ERROR: InvocationError: '/localdisk/designer/tngo/starlingx-0/cgcs-root/stx/gui/.tox/pep8/bin/flake8'
Severity
--------
Major
Steps to Reproduce
------------------
Run tox on stx/gui repository
Expected Behavior
------------------
Code rated 10.00/10.
Actual Behavior
----------------
5 errors found.
Reproducibility
---------------
Reproducible
System Configuration
--------------------
N/A
Branch/Pull Time/Commit
-----------------------
N/A
Last Pass
---------
N/A
Timestamp/Logs
--------------
N/A
Test Activity
-------------
Developer Testing
Workaround
----------
N/A
Reviewed: https:/ /review. opendev. org/c/starlingx /gui/+/ 820471 /opendev. org/starlingx/ gui/commit/ 01d9c56e0598318 497aa46de06d589 8e8f0707e6
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 01d9c56e0598318 497aa46de06d589 8e8f0707e6
Author: Enzo Candotti <email address hidden>
Date: Mon Dec 6 00:28:50 2021 -0300
Fix tox errors
When running tox on stx/gui repository, 5 errors have
been found. This change fix those errors.
Test plan:
PASS: Run tox and verify there is no error.
PASS: Build starlingx-dashboard rpm and verify changes are still
working.
Closes-bug: 1953364
Signed-off-by: Enzo Candotti <email address hidden> b8ff78ec6d6197a 371d25b2f30
Change-Id: I6698953f808b68