Browse Source

Merge pull request #5 from strider/strider-dev/tox-linters

Improve testing infrastructure
changes/53/712253/1
mathieu bultel 2 years ago
committed by GitHub
parent
commit
497652f1b3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      .pre-commit-config.yaml
  2. 2
      tox.ini
  3. 2
      validations_libs/tests/fakes.py
  4. 14
      zuul.d/layout.yaml

2
.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)$

2
tox.ini

@ -1,6 +1,6 @@
[tox]
minversion = 2.0
envlist = linters
envlist = linters,py37
skipdist = True
[testenv]

2
validations_libs/tests/fakes.py

@ -13,8 +13,6 @@
# under the License.
#
import mock
VALIDATIONS_LIST = [{
'description': 'My Validation One Description',

14
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
Loading…
Cancel
Save