weblate/scripts/filter-mypy.sh
Michal Čihař 942319928a chore(tests): use real models rather than custom mocks
This brings the tests closer to the runtime and makes type checking
doable.
2026-05-11 14:30:36 +02:00

15 lines
421 B
Bash
Executable file
Vendored

#!/bin/sh
# Copyright © Michal Čihař <michal@weblate.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
set -e
# Filter out known issues in mypy checker
#
# - things which currently cannot be properly typed Django
# - https://github.com/sbdchd/celery-types/issues/157
# - settings do not have proper type annotations
grep -vE '"Field" has no attribute "(choices|queryset|name)"|.Settings. object has no attribute'