From ce6d32b956aab3589d02d555b887a69b2b0a0096 Mon Sep 17 00:00:00 2001 From: "Gael Chamoulaud (Strider)" Date: Wed, 4 Mar 2020 13:47:41 +0100 Subject: [PATCH] Improve testing infrastructure * Add py37 tox env * Fix pep8 error * Add zuul.d structure Signed-off-by: Gael Chamoulaud (Strider) --- .pre-commit-config.yaml | 2 +- tox.ini | 2 +- validations_libs/tests/fakes.py | 2 -- zuul.d/layout.yaml | 14 ++++++++++++++ 4 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 zuul.d/layout.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6c6217f1..af504268 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,6 +11,6 @@ repos: - id: check-merge-conflict - id: debug-statements - id: flake8 - entry: flake8 --ignore=E24,E121,E122,E123,E124,E126,E226,E265,E305,E402,F401,F405,E501,E704,F403,F841,W503,W605 + #entry: flake8 --ignore=E24,E121,E122,E123,E124,E126,E226,E265,E305,E402,F401,F405,E501,E704,F403,F841,W503,W605 - id: check-yaml files: .*\.(yaml|yml)$ diff --git a/tox.ini b/tox.ini index b09fcecd..b8091112 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 2.0 -envlist = linters +envlist = linters,py37 skipdist = True [testenv] diff --git a/validations_libs/tests/fakes.py b/validations_libs/tests/fakes.py index bb2752b5..dbdb1f8d 100644 --- a/validations_libs/tests/fakes.py +++ b/validations_libs/tests/fakes.py @@ -13,8 +13,6 @@ # under the License. # -import mock - VALIDATIONS_LIST = [{ 'description': 'My Validation One Description', diff --git a/zuul.d/layout.yaml b/zuul.d/layout.yaml new file mode 100644 index 00000000..57ef7d65 --- /dev/null +++ b/zuul.d/layout.yaml @@ -0,0 +1,14 @@ +- project: + templates: + - tripleo-multinode-container-minimal + - openstack-python3-ussuri-jobs + - check-requirements + - release-notes-jobs-python3 + check: + jobs: + - openstack-tox-linters + - openstack-tox-lower-constraints + gate: + jobs: + - openstack-tox-linters + - openstack-tox-lower-constraints