Skip to content

Commit

Permalink
fix(settings): silence drf_spectacular checks
Browse files Browse the repository at this point in the history
These are expected for now, the schema is currently known to be
incomplete.
  • Loading branch information
nijel committed Oct 1, 2024
1 parent 47d3574 commit 7ca2a89
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion weblate/settings_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -1289,7 +1289,10 @@
SILENCED_SYSTEM_CHECKS = [
# We have modified django.contrib.auth.middleware.AuthenticationMiddleware
# as weblate.accounts.middleware.AuthenticationMiddleware
"admin.E408"
"admin.E408",
# Silence drf_spectacular until these are addressed
"drf_spectacular.W001",
"drf_spectacular.W002",
]

# Silence WebAuthn origin error
Expand Down
5 changes: 4 additions & 1 deletion weblate/settings_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,10 @@
SILENCED_SYSTEM_CHECKS = [
# We have modified django.contrib.auth.middleware.AuthenticationMiddleware
# as weblate.accounts.middleware.AuthenticationMiddleware
"admin.E408"
"admin.E408",
# Silence drf_spectacular until these are addressed
"drf_spectacular.W001",
"drf_spectacular.W002",
]

# Celery worker configuration for testing
Expand Down

0 comments on commit 7ca2a89

Please sign in to comment.