diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0b3308f..258f951 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,8 +11,8 @@ repos: - id: isort args: ["--profile", "black"] - - repo: https://github.com/psf/black - rev: 25.12.0 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 26.1.0 hooks: - id: black args: [--target-version=py310] diff --git a/avatar/models.py b/avatar/models.py index 8c5d38f..800ee10 100644 --- a/avatar/models.py +++ b/avatar/models.py @@ -42,11 +42,11 @@ def avatar_path_handler( # Filename already stored in database filename = instance.avatar.name if ext: - (root, oldext) = os.path.splitext(filename) + root, oldext = os.path.splitext(filename) filename = root + "." + ext.lower() else: # File doesn't exist yet - (root, oldext) = os.path.splitext(filename) + root, oldext = os.path.splitext(filename) if settings.AVATAR_HASH_FILENAMES: if settings.AVATAR_RANDOMIZE_HASHES: root = binascii.hexlify(os.urandom(16)).decode("ascii") diff --git a/test_proj/manage.py b/test_proj/manage.py index 1844990..f876487 100755 --- a/test_proj/manage.py +++ b/test_proj/manage.py @@ -1,5 +1,6 @@ #!/usr/bin/env python """Django's command-line utility for administrative tasks.""" + import os import sys