From 288b022d75b66e18c9a0a7a4bb40c4d6b4c4696a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Feb 2025 23:58:27 +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/asottile/pyupgrade: v3.19.0 → v3.19.1](https://github.com/asottile/pyupgrade/compare/v3.19.0...v3.19.1) - [github.com/pycqa/isort: 5.13.2 → 6.0.0](https://github.com/pycqa/isort/compare/5.13.2...6.0.0) - [github.com/psf/black: 24.10.0 → 25.1.0](https://github.com/psf/black/compare/24.10.0...25.1.0) - [github.com/Riverside-Healthcare/djLint: v1.35.4 → v1.36.4](https://github.com/Riverside-Healthcare/djLint/compare/v1.35.4...v1.36.4) --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3e3f38c4..3edeb5cb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,7 +11,7 @@ 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: @@ -19,13 +19,13 @@ repos: # 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 @@ -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" From 898220c713376f16fea0cf9585cf78a44c30cc10 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Feb 2025 23:59:20 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- kubespawner/slugs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kubespawner/slugs.py b/kubespawner/slugs.py index 2cf49b04..3094d2b2 100644 --- a/kubespawner/slugs.py +++ b/kubespawner/slugs.py @@ -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]