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:
Ihar Hrachyshka 2024-11-05 18:00:56 -05:00
parent 52f5b3e812
commit 919b4f6d68
3 changed files with 3 additions and 32 deletions

View File

@ -1,5 +1,5 @@
[tox]
envlist = docs,py3,pep8,mypy
envlist = docs,py3,pep8
minversion = 3.18.0
skipsdist = False
ignore_basepython_conflict = True
@ -124,7 +124,6 @@ commands =
[testenv:mypy]
deps =
{[testenv]deps}
mypy==1.11.2
commands = mypy --config-file ./mypy.ini neutron
[testenv:releasenotes]
@ -142,6 +141,7 @@ deps =
bandit>=1.7.5 # Apache-2.0
flake8-import-order>=0.18.2,<0.19.0 # LGPLv3
pylint==3.2.0 # GPLv2
mypy==1.11.2
commands=
# If it is easier to add a check via a shell script, consider adding it in this file
bash ./tools/misc-sanity-checks.sh
@ -164,6 +164,7 @@ commands=
doc/source neutron CONTRIBUTING.rst README.rst TESTING.rst
{[testenv:genconfig]commands}
{[testenv:bashate]commands}
{[testenv:mypy]commands}
{[testenv:bandit]commands}
{[testenv:genpolicy]commands}
allowlist_externals = bash

View File

@ -116,35 +116,6 @@
- ^zuul.d/tempest-multinode.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:
name: neutron-fullstack-with-uwsgi
parent: neutron-fullstack

View File

@ -18,7 +18,6 @@
- neutron-skip-level-jobs
check:
jobs:
- neutron-tox-mypy
- neutron-functional-with-uwsgi
- neutron-fullstack-with-uwsgi
- neutron-ovs-grenade-multinode