diff --git a/tools/semgrep-py.yml b/tools/semgrep-py.yml index 535b3b9cb8..d3fb6b352d 100644 --- a/tools/semgrep-py.yml +++ b/tools/semgrep-py.yml @@ -54,6 +54,7 @@ rules: - id: dont-import-models-in-migrations patterns: + - pattern-not: from zerver.lib.mime_types import guess_type - pattern-not: from zerver.lib.redis_utils import get_redis_client - pattern-not: from zerver.lib.utils import generate_api_key - pattern-not: from zerver.models.linkifiers import filter_pattern_validator