Compare commits

...

2 commits

Author SHA1 Message Date
pre-commit-ci[bot]
221bf4e21f [pre-commit.ci] auto fixes from pre-commit.com hooks
Some checks are pending
Test / Build (4.2, 3.10) (push) Waiting to run
Test / Build (4.2, 3.11) (push) Waiting to run
Test / Build (4.2, 3.12) (push) Waiting to run
Test / Build (4.2, 3.13) (push) Waiting to run
Test / Build (4.2, 3.14) (push) Waiting to run
Test / Build (5.2, 3.10) (push) Waiting to run
Test / Build (5.2, 3.11) (push) Waiting to run
Test / Build (5.2, 3.12) (push) Waiting to run
Test / Build (5.2, 3.13) (push) Waiting to run
Test / Build (5.2, 3.14) (push) Waiting to run
Test / Build (6.0.*, 3.10) (push) Waiting to run
Test / Build (6.0.*, 3.11) (push) Waiting to run
Test / Build (6.0.*, 3.12) (push) Waiting to run
Test / Build (6.0.*, 3.13) (push) Waiting to run
Test / Build (6.0.*, 3.14) (push) Waiting to run
for more information, see https://pre-commit.ci
2026-03-16 17:38:50 +00:00
pre-commit-ci[bot]
91e5344219
[pre-commit.ci] pre-commit autoupdate
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/blackhttps://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)
2026-03-16 17:36:53 +00:00
3 changed files with 6 additions and 5 deletions

View file

@ -6,13 +6,13 @@ repos:
- id: trailing-whitespace - id: trailing-whitespace
- repo: https://github.com/pycqa/isort - repo: https://github.com/pycqa/isort
rev: "7.0.0" rev: "8.0.1"
hooks: hooks:
- id: isort - id: isort
args: ["--profile", "black"] args: ["--profile", "black"]
- repo: https://github.com/psf/black - repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.12.0 rev: 26.3.1
hooks: hooks:
- id: black - id: black
args: [--target-version=py310] args: [--target-version=py310]

View file

@ -42,11 +42,11 @@ def avatar_path_handler(
# Filename already stored in database # Filename already stored in database
filename = instance.avatar.name filename = instance.avatar.name
if ext: if ext:
(root, oldext) = os.path.splitext(filename) root, oldext = os.path.splitext(filename)
filename = root + "." + ext.lower() filename = root + "." + ext.lower()
else: else:
# File doesn't exist yet # 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_HASH_FILENAMES:
if settings.AVATAR_RANDOMIZE_HASHES: if settings.AVATAR_RANDOMIZE_HASHES:
root = binascii.hexlify(os.urandom(16)).decode("ascii") root = binascii.hexlify(os.urandom(16)).decode("ascii")

View file

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