diff --git a/test-requirements.txt b/test-requirements.txt index 35a31f7..fbf5841 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,5 +1,5 @@ -pytest -flake8 -gitpython >= 3.1.8 -ruamel.yaml == 0.17.21; python_version == "3.6" -ruamel.yaml == 0.18.6; python_version > "3.6" +pytest +flake8 +gitpython >= 3.1.8 +ruamel.yaml == 0.17.21; python_version == "3.6" +ruamel.yaml == 0.18.6; python_version > "3.6" diff --git a/tox.ini b/tox.ini index b31934f..45bf356 100644 --- a/tox.ini +++ b/tox.ini @@ -1,26 +1,26 @@ -[tox] -skipsdist = True -requires = - tox >= 2.0 - -[flake8] -exclude = - .git, - __pycache__, - *.pyc, - .cache, - .tox -max-line-length = 120 - -[testenv] -platform = linux -basepython = python3 -deps = - -rrequirements.txt - -rtest-requirements.txt - -[testenv:flake8] -commands = flake8 powertrain_build tests - -[testenv:pytest] -commands = python -m pytest tests +[tox] +skipsdist = True +requires = + tox >= 2.0 + +[flake8] +exclude = + .git, + __pycache__, + *.pyc, + .cache, + .tox +max-line-length = 120 + +[testenv] +platform = linux +basepython = python3 +deps = + -rrequirements.txt + -rtest-requirements.txt + +[testenv:flake8] +commands = flake8 powertrain_build tests + +[testenv:pytest] +commands = python -m pytest tests diff --git a/zuul.d/projects.yaml b/zuul.d/projects.yaml index 4a145b9..83f4974 100644 --- a/zuul.d/projects.yaml +++ b/zuul.d/projects.yaml @@ -1,13 +1,13 @@ -- project: - check: - jobs: - - noop - - powertrain-build-tox - gate: - jobs: - - noop - - powertrain-build-tox - - powertrain-build-blackduck - release: - jobs: - - release-powertrain-build +- project: + check: + jobs: + - noop + - powertrain-build-tox + gate: + jobs: + - noop + - powertrain-build-tox + - powertrain-build-blackduck + release: + jobs: + - release-powertrain-build diff --git a/zuul.d/tox.yaml b/zuul.d/tox.yaml index 65c81f0..7382df3 100644 --- a/zuul.d/tox.yaml +++ b/zuul.d/tox.yaml @@ -1,6 +1,6 @@ -- job: - name: powertrain-build-tox - parent: tox - vars: - tox_envlist: flake8,pytest - nodeset: ubuntu-jammy +- job: + name: powertrain-build-tox + parent: tox + vars: + tox_envlist: flake8,pytest + nodeset: ubuntu-jammy