Compare commits

...

2 commits

Author SHA1 Message Date
pre-commit-ci[bot]
8b470dfd8a [pre-commit.ci] auto fixes from pre-commit.com hooks
Some checks failed
Test / Build (4.2, 3.10) (push) Has been cancelled
Test / Build (4.2, 3.11) (push) Has been cancelled
Test / Build (4.2, 3.12) (push) Has been cancelled
Test / Build (4.2, 3.13) (push) Has been cancelled
Test / Build (4.2, 3.14) (push) Has been cancelled
Test / Build (5.2, 3.10) (push) Has been cancelled
Test / Build (5.2, 3.11) (push) Has been cancelled
Test / Build (5.2, 3.12) (push) Has been cancelled
Test / Build (5.2, 3.13) (push) Has been cancelled
Test / Build (5.2, 3.14) (push) Has been cancelled
Test / Build (6.0.*, 3.10) (push) Has been cancelled
Test / Build (6.0.*, 3.11) (push) Has been cancelled
Test / Build (6.0.*, 3.12) (push) Has been cancelled
Test / Build (6.0.*, 3.13) (push) Has been cancelled
Test / Build (6.0.*, 3.14) (push) Has been cancelled
for more information, see https://pre-commit.ci
2026-01-19 17:36:48 +00:00
pre-commit-ci[bot]
024602e530
[pre-commit.ci] pre-commit autoupdate
updates:
- https://github.com/psf/blackhttps://github.com/psf/black-pre-commit-mirror
- [github.com/psf/black-pre-commit-mirror: 25.12.0 → 26.1.0](https://github.com/psf/black-pre-commit-mirror/compare/25.12.0...26.1.0)
2026-01-19 17:36:36 +00:00
3 changed files with 5 additions and 4 deletions

View file

@ -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]

View file

@ -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")

View file

@ -1,5 +1,6 @@
#!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys