Commit Graph

6 Commits

Author SHA1 Message Date
Hugo Brito b87508a410 Update tox config for Distributed Cloud Client
Cleanup the tox configuration and requirements.

Black formatter was applied in the modified files.

Test Plan:
Verify that all Tox tests pass without errors.
1. Successfully executed on the distributedcloud dir
- tox -e docs,releasenotes,api-ref,bandit,linters
- tox -e newnote -- new-note
2. Successfully executed on the distributedcloud/distributedcloud dir
- tox -e py39,pylint,pep8,cover

Partial-Bug: 2053023

Change-Id: Ib25f31f8607e46e51dfbda0a6b3a36e9e11151df
Signed-off-by: Hugo Brito <hugo.brito@windriver.com>
2024-02-27 16:58:59 -03:00
albailey bb96242adf Fix zuul jobs broken due to pip upversion
The bandit defined in base level test-requirements.txt
needed to be restricted to python3.

The version of hacking was conflicting.
Updated pylint to be python3.
The newer hacking pulls in some additional flake8 warnings
which are being suppressed for now.

The gettextutils has per line suppressions based
on the new version of pylint, however that file should be
removed in favor of a solution based on oslo.i18n.

The multiple test-requirements.txt files should be
revisited.

Change-Id: I9de0ad5871865fc3baf79f89e3f9f6bedc523e05
Partial-Bug: #1907678
Signed-off-by: albailey <Al.Bailey@windriver.com>
2020-12-18 13:39:36 -06:00
Sharath Kumar K 7394a5fcad Tox and Zuul job for the bandit code scan in stx/distrib-client
Setting up the bandit tool for the scanning of HIGH severity issues
in the python codes under Starlingx/distributedcloud-client folder.
Expecting this merge will enable zuul job for CI/CD of bandit scan.

Configuration files:
1. tox.ini for adding bandit environment and command.
2. test-requirements.txt for adding bandit version.
3. .zuul.yaml file for adding bandit job and configuring under
   check job to run code scan every time before code commit.

Test:
Run tox -e bandit command inside the fault folder to validate the
bandit scan and result.

Please note:
Changes will be implemented in batches and  this is Batch7 change.

Story: 2007541
Task: 39649
Depends-On: https://review.opendev.org/#/c/721294/

Change-Id: I8d1f0307c5b7ccf9ce6956b9808c5151987954a2
Signed-off-by: Sharath Kumar K <sharath.kumar@intel.com>
2020-06-08 03:59:38 +00:00
Don Penney 4e006a92a5 Move content to subdir to support relocated packaging
Change-Id: I985f3bef71616c6674e31b68c5d8037cdb670884
Story: 2006166
Task: 37338
Depends-On: https://review.opendev.org/692861
Signed-off-by: Don Penney <don.penney@windriver.com>
2019-11-04 14:14:38 -05:00
Dean Troyer 151ae48ca4 Set up initial Gerrit requirements
* Add .gitreview
* Add .zuul.yaml with basic linters and pep8 jobs
* Fix up tox.ini to run linters and pep8 environments.  This
  changed some leagacy config in the default testenv that will
  affect the more specific environments.

Change-Id: I02a81c5179141efb056cd030819af6387ba7a13c
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2018-09-06 15:39:33 -05:00
Scott Little 640ee2a980 StarlingX open source release updates
Signed-off-by: Scott Little <scott.little@windriver.com>
2018-08-07 11:51:16 -04:00