gate: squash mypy into pep8 job
You can still run just mypy checks locally with `tox -e mypy`. Change-Id: Ia70f471c0f66679c44c4d3684c9e46c00993f3b3
This commit is contained in:
5
tox.ini
5
tox.ini
@@ -1,5 +1,5 @@
|
|||||||
[tox]
|
[tox]
|
||||||
envlist = docs,py3,pep8,mypy
|
envlist = docs,py3,pep8
|
||||||
minversion = 3.18.0
|
minversion = 3.18.0
|
||||||
skipsdist = False
|
skipsdist = False
|
||||||
ignore_basepython_conflict = True
|
ignore_basepython_conflict = True
|
||||||
@@ -124,7 +124,6 @@ commands =
|
|||||||
[testenv:mypy]
|
[testenv:mypy]
|
||||||
deps =
|
deps =
|
||||||
{[testenv]deps}
|
{[testenv]deps}
|
||||||
mypy==1.11.2
|
|
||||||
commands = mypy --config-file ./mypy.ini neutron
|
commands = mypy --config-file ./mypy.ini neutron
|
||||||
|
|
||||||
[testenv:releasenotes]
|
[testenv:releasenotes]
|
||||||
@@ -142,6 +141,7 @@ deps =
|
|||||||
bandit>=1.7.5 # Apache-2.0
|
bandit>=1.7.5 # Apache-2.0
|
||||||
flake8-import-order>=0.18.2,<0.19.0 # LGPLv3
|
flake8-import-order>=0.18.2,<0.19.0 # LGPLv3
|
||||||
pylint==3.2.0 # GPLv2
|
pylint==3.2.0 # GPLv2
|
||||||
|
mypy==1.11.2
|
||||||
commands=
|
commands=
|
||||||
# If it is easier to add a check via a shell script, consider adding it in this file
|
# If it is easier to add a check via a shell script, consider adding it in this file
|
||||||
bash ./tools/misc-sanity-checks.sh
|
bash ./tools/misc-sanity-checks.sh
|
||||||
@@ -164,6 +164,7 @@ commands=
|
|||||||
doc/source neutron CONTRIBUTING.rst README.rst TESTING.rst
|
doc/source neutron CONTRIBUTING.rst README.rst TESTING.rst
|
||||||
{[testenv:genconfig]commands}
|
{[testenv:genconfig]commands}
|
||||||
{[testenv:bashate]commands}
|
{[testenv:bashate]commands}
|
||||||
|
{[testenv:mypy]commands}
|
||||||
{[testenv:bandit]commands}
|
{[testenv:bandit]commands}
|
||||||
{[testenv:genpolicy]commands}
|
{[testenv:genpolicy]commands}
|
||||||
allowlist_externals = bash
|
allowlist_externals = bash
|
||||||
|
@@ -116,35 +116,6 @@
|
|||||||
- ^zuul.d/tempest-multinode.yaml
|
- ^zuul.d/tempest-multinode.yaml
|
||||||
- ^zuul.d/tempest-singlenode.yaml
|
- ^zuul.d/tempest-singlenode.yaml
|
||||||
|
|
||||||
- job:
|
|
||||||
name: neutron-tox-mypy
|
|
||||||
parent: openstack-tox
|
|
||||||
vars:
|
|
||||||
tox_envlist: mypy
|
|
||||||
irrelevant-files:
|
|
||||||
- ^\.pre-commit-config\.yaml$
|
|
||||||
- ^\.pylintrc$
|
|
||||||
- ^releasenotes/.*$
|
|
||||||
- ^doc/.*$
|
|
||||||
- ^setup.cfg$
|
|
||||||
- ^plugin.spec$
|
|
||||||
- ^tools/ovn_migration/.*$
|
|
||||||
- ^.*\.conf\.sample$
|
|
||||||
- ^.*\.rst$
|
|
||||||
- ^neutron/locale/.*$
|
|
||||||
- ^vagrant/.*$
|
|
||||||
- ^devstack/.*$
|
|
||||||
- ^playbooks/.*$
|
|
||||||
- ^roles/.*$
|
|
||||||
- ^rally-jobs/.*$
|
|
||||||
# Ignore everything except for zuul.d/project.yaml
|
|
||||||
- ^zuul.d/base.yaml
|
|
||||||
- ^zuul.d/grenade.yaml
|
|
||||||
- ^zuul.d/job-templates.yaml
|
|
||||||
- ^zuul.d/rally.yaml
|
|
||||||
- ^zuul.d/tempest-multinode.yaml
|
|
||||||
- ^zuul.d/tempest-singlenode.yaml
|
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: neutron-fullstack-with-uwsgi
|
name: neutron-fullstack-with-uwsgi
|
||||||
parent: neutron-fullstack
|
parent: neutron-fullstack
|
||||||
|
@@ -18,7 +18,6 @@
|
|||||||
- neutron-skip-level-jobs
|
- neutron-skip-level-jobs
|
||||||
check:
|
check:
|
||||||
jobs:
|
jobs:
|
||||||
- neutron-tox-mypy
|
|
||||||
- neutron-functional-with-uwsgi
|
- neutron-functional-with-uwsgi
|
||||||
- neutron-fullstack-with-uwsgi
|
- neutron-fullstack-with-uwsgi
|
||||||
- neutron-ovs-grenade-multinode
|
- neutron-ovs-grenade-multinode
|
||||||
|
Reference in New Issue
Block a user