🚨(backend) fix linter warnings

Recent updates of dev/ruff and dev/pylint dependencies led
to new linting warnings.

Pylint 3.2.0 introduced a new check `possibly-used-before-assignment`,
which ensures variables are defined regardless of conditional statements.

Some if/else branches were missing defaults. These have been fixed.
This commit is contained in:
lebaudantoine
2024-07-30 16:48:26 +02:00
committed by aleb_the_flash
parent c93e770704
commit daa125edf3
27 changed files with 34 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
"""API endpoints"""
import uuid
from django.conf import settings