Cleanup the tox configuration and requirements.
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
Partial-Bug: 2033294
Change-Id: Ie7b2acb03c379708e8ef57b52d3c83560414f007
Signed-off-by: Hugo Brito <hugo.brito@windriver.com>
A new yamllint was released which dropped py2 support.
Zuul servers that have updated their caches will attempt
to install that version, as it is not clamped by upper constraints.
This also attempts to not use site packages.
Partial-Bug: 1922590
Change-Id: I8b2776f4c12447a66743a8b2626aa914969dcd2a
Signed-off-by: albailey <Al.Bailey@windriver.com>
New pip was released on Dec 3, 2020 which breaks downloads
from pypi for some URLs.
New virtualenv was released Dec 7 which includes the new pip.
The new pip uses a different resolver which fails with many
of the components installed by pip. These components
may need to be fixed by later commits, since the legacy
resolver is being removed completely in early 2021.
Change-Id: Ifcbd8965e2ef0b53dae0c878c2a0f2bd91b572c2
Closes-Bug: 1907125
Signed-off-by: albailey <Al.Bailey@windriver.com>
Setting up the bandit tool for the scanning of HIGH severity issues
in the python codes under Starlingx/distributedcloud 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 Batch6 change.
Story: 2007541
Task: 39648
Depends-On: https://review.opendev.org/#/c/721294/
Change-Id: I6fdfeacdb000faafc73c44eef352bf2abd38a9a2
Signed-off-by: Sharath Kumar K <sharath.kumar@intel.com>
* 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: Ieca279a240b8705dcb73d9d195e1658a40e199e1
Signed-off-by: Dean Troyer <dtroyer@gmail.com>