Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #876

Merged
merged 2 commits into from
Feb 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@
repos:
# Autoformat: Python code, syntax patterns are modernized
- repo: https://github.com/asottile/pyupgrade
rev: v3.19.0
rev: v3.19.1
hooks:
- id: pyupgrade
args:
- --py37-plus

# Autoformat: Python code
- repo: https://github.com/pycqa/isort
rev: 5.13.2
rev: 6.0.0
hooks:
- id: isort

# Autoformat: Python code
- repo: https://github.com/psf/black
rev: 24.10.0
rev: 25.1.0
hooks:
- id: black

Expand Down Expand Up @@ -63,7 +63,7 @@ repos:

# Lint our jinja2 templates
- repo: https://github.com/Riverside-Healthcare/djLint
rev: v1.35.4
rev: v1.36.4
hooks:
- id: djlint-jinja
files: "kubespawner/templates/.*\\.html"
Expand Down
2 changes: 1 addition & 1 deletion kubespawner/slugs.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def multi_slug(names, max_length=48):
for name in names[1:]:
# \xFF can't occur as a start byte in UTF8
# so use it as a word delimiter to make sure overlapping words don't collide
hasher.update(b"\xFF")
hasher.update(b"\xff")
hasher.update(name.encode("utf8"))
hash = hasher.hexdigest()[:_hash_length]

Expand Down