pyproject.toml: Exclude the build directory from mypy checks

- build/ directory is generated after the 'make build install' step and contains
files that are duplicates of the main source leading to a failure.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2024-02-13 16:24:36 -08:00 committed by James Valleroy
parent 3aae4b39d6
commit 5399efde73
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -201,6 +201,9 @@ disable = [
"too-many-ancestors", # Easy to hit when using Django
]
[tool.mypy]
exclude = "build/"
# Ignore missing type stubs for some libraries. Try to keep this list minimal
# and use type annotations where available.
[[tool.mypy.overrides]]