From 91e53442192762df9a587d043e418a5a94c34096 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 16 Mar 2026 17:36:53 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pycqa/isort: 7.0.0 → 8.0.1](https://github.com/pycqa/isort/compare/7.0.0...8.0.1) - https://github.com/psf/black → https://github.com/psf/black-pre-commit-mirror - [github.com/psf/black-pre-commit-mirror: 25.12.0 → 26.3.1](https://github.com/psf/black-pre-commit-mirror/compare/25.12.0...26.3.1) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0b3308f..6b84669 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,13 +6,13 @@ repos: - id: trailing-whitespace - repo: https://github.com/pycqa/isort - rev: "7.0.0" + rev: "8.0.1" hooks: - 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.3.1 hooks: - id: black args: [--target-version=py310] From 221bf4e21f06b3d25fd6ba6d3c74d85968c9c2d4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 16 Mar 2026 17:38:48 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- avatar/models.py | 4 ++-- test_proj/manage.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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