Commit Graph

4 Commits

Author SHA1 Message Date
Al Bailey f7a056dca0 Fix pep8 Zuul failure
A new version of flake8 (6.0.0) was released Nov 23, 2022
It is leading to an argparse error
  ValueError: 'string' is not callable

The fix is to use 'hacking' which is an openstack module
that pulls in the appropriate version of flake8.

Closes-Bug: #1997971
Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: Icaa5cd1cb7c362bd8caf666d82d7d7f655523fb0
2022-11-25 13:44:16 +00:00
Thiago Brito 4d34b1ac65 Add flake8-import-order and use python3.9 on tox
Improving the code quality of upstream by adding the flake8 check on
zuul and adding the flake8-import-order plugin to standardize imports.
Also, defaults testenv to python3.9 configuration that should be used
for now on with the debian migration.

Story: 2010100
Task: 45669
Signed-off-by: Thiago Brito <thiago.brito@windriver.com>
Change-Id: I55aa952c4f22a7af53e1f1c11a4a51997afa4bcf
2022-06-22 21:59:14 +00:00
Sun Austin 0de76ec71d flake8 codestyle fixes and tox flake8 setting enable
Fix major below issues:
E741 ambiguous variable name 'l'
./openstack/python-horizon/centos/files/guni_config.py
E402 module level import not at top of file
./openstack/python-horizon/centos/files/local_settings.py
E265 block comment should start with '# '
./openstack/python-horizon/centos/files/local_settings.py

Story: 2003428
Task: 24617

Change-Id: I9d4d6c33ce032849f09e2ec232c83909fc6690a3
Signed-off-by: Sun Austin <austin.sun@intel.com>
2018-08-24 23:19:50 +08:00
Dean Troyer 24c92163e4 Add default test framework
Change-Id: I63420abc27ebd4ee33ae39112d8cbdf15e138200
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2018-06-12 10:26:12 -05:00