semgrep: Allow zerver.lib.mime_types imports in migrations.

This commit is contained in:
Alex Vandiver 2024-06-21 19:30:02 +00:00 committed by Tim Abbott
parent 872e2ad2cd
commit f66b78f6b3
1 changed files with 1 additions and 0 deletions

View File

@ -54,6 +54,7 @@ rules:
- id: dont-import-models-in-migrations - id: dont-import-models-in-migrations
patterns: 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.redis_utils import get_redis_client
- pattern-not: from zerver.lib.utils import generate_api_key - pattern-not: from zerver.lib.utils import generate_api_key
- pattern-not: from zerver.models.linkifiers import filter_pattern_validator - pattern-not: from zerver.models.linkifiers import filter_pattern_validator