Migrate mypy configuration to pyproject.toml

Change-Id: Ife39b55eb40c9cb8e61f1b2295b6d42cefe3a680
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
Stephen Finucane
2025-06-04 11:24:35 +01:00
parent 5da2dc2060
commit 4b09ba2a6b
2 changed files with 36 additions and 34 deletions
+36
View File
@@ -7,3 +7,39 @@ aggressive = 3
in-place = true in-place = true
recursive = true recursive = true
[tool.mypy]
python_version = "3.10"
show_column_numbers = true
show_error_context = true
ignore_missing_imports = true
follow_imports = "skip"
incremental = true
check_untyped_defs = true
warn_unused_ignores = true
# keep this in-sync with 'mypy.exclude' in '.pre-commit-config.yaml'
files = [
"nova/compute/manager.py",
"nova/compute/pci_placement_translator.py",
"nova/crypto.py",
"nova/filesystem.py",
"nova/limit/local.py",
"nova/limit/placement.py",
"nova/network/neutron.py",
"nova/pci/*.py",
"nova/privsep/path.py",
"nova/scheduler/client/report.py",
"nova/scheduler/request_filter.py",
"nova/scheduler/utils.py",
"nova/virt/driver.py",
"nova/virt/hardware.py",
"nova/virt/libvirt/machine_type_utils.py",
"nova/virt/libvirt/__init__.py",
"nova/virt/libvirt/cpu/__init__.py",
"nova/virt/libvirt/cpu/api.py",
"nova/virt/libvirt/cpu/core.py",
"nova/virt/libvirt/driver.py",
"nova/virt/libvirt/event.py",
"nova/virt/libvirt/guest.py",
"nova/virt/libvirt/host.py",
"nova/virt/libvirt/utils.py",
]
-34
View File
@@ -85,40 +85,6 @@ console_scripts =
nova-spicehtml5proxy = nova.cmd.spicehtml5proxy:main nova-spicehtml5proxy = nova.cmd.spicehtml5proxy:main
nova-status = nova.cmd.status:main nova-status = nova.cmd.status:main
[mypy]
show_column_numbers = true
show_error_context = true
ignore_missing_imports = true
follow_imports = skip
incremental = true
check_untyped_defs = true
warn_unused_ignores = true
files =
nova/compute/manager.py,
nova/compute/pci_placement_translator.py,
nova/crypto.py,
nova/filesystem.py,
nova/limit/local.py,
nova/limit/placement.py,
nova/network/neutron.py,
nova/pci/*.py,
nova/privsep/path.py,
nova/scheduler/client/report.py,
nova/scheduler/request_filter.py,
nova/scheduler/utils.py,
nova/virt/driver.py,
nova/virt/hardware.py,
nova/virt/libvirt/machine_type_utils.py,
nova/virt/libvirt/__init__.py,
nova/virt/libvirt/cpu/__init__.py,
nova/virt/libvirt/cpu/api.py,
nova/virt/libvirt/cpu/core.py,
nova/virt/libvirt/driver.py,
nova/virt/libvirt/event.py,
nova/virt/libvirt/guest.py,
nova/virt/libvirt/host.py,
nova/virt/libvirt/utils.py
[codespell] [codespell]
skip = *.po,*.js,*.css,*.html,*.svg,HACKING.py,*hacking*,*build*,*_static*,doc/dictionary.txt,*.pyc,*.inv,*.gz,*.jpg,*.png,*.vsd,*.graffle,*.json skip = *.po,*.js,*.css,*.html,*.svg,HACKING.py,*hacking*,*build*,*_static*,doc/dictionary.txt,*.pyc,*.inv,*.gz,*.jpg,*.png,*.vsd,*.graffle,*.json
count = count =