2 Commits

Author SHA1 Message Date
pre-commit-ci[bot]
370ffc62d6 🎨 auto fixes from pre-commit.com hooks 2026-02-16 19:10:55 +00:00
pre-commit-ci[bot]
36fb8528ad 👷 pre-commit autoupdate
updates:
- [github.com/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v5.0.0...v6.0.0)
- [github.com/astral-sh/ruff-pre-commit: v0.11.11 → v0.15.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.11.11...v0.15.1)
- [github.com/bhundven/copywrite: 937f17f09c46992447dfa8977bb96eda512588c4 → 9d021bf61a094a5eac6ae3084ceed2dda4700a73](937f17f09c...9d021bf61a)
2026-02-16 19:09:58 +00:00
3 changed files with 5 additions and 5 deletions

View File

@@ -11,7 +11,7 @@ jobs:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v6 uses: actions/checkout@v6
- name: Setup Copywrite - name: Setup Copywrite
uses: hashicorp/setup-copywrite@a04637e6e759ec1689abcf81448b2e2039404e08 uses: hashicorp/setup-copywrite@32f9f1c86f661b8a51100768976a06f1b281a035
- name: Check Header Compliance - name: Check Header Compliance
run: copywrite headers --plan --config .copywrite.hcl run: copywrite headers --plan --config .copywrite.hcl

View File

@@ -7,7 +7,7 @@ ci:
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0 rev: v6.0.0
hooks: hooks:
- id: trailing-whitespace - id: trailing-whitespace
exclude: \.(po|pot|yml|yaml)$ exclude: \.(po|pot|yml|yaml)$
@@ -21,7 +21,7 @@ repos:
exclude: \.(po|pot|yml|yaml)$ exclude: \.(po|pot|yml|yaml)$
- repo: https://github.com/astral-sh/ruff-pre-commit - repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version. # Ruff version.
rev: v0.11.11 rev: v0.15.1
hooks: hooks:
# Run the linter. # Run the linter.
- id: ruff - id: ruff
@@ -29,6 +29,6 @@ repos:
# Run the formatter. # Run the formatter.
- id: ruff-format - id: ruff-format
- repo: https://github.com/bhundven/copywrite # waiting for https://github.com/hashicorp/copywrite/pull/120 to be merged - repo: https://github.com/bhundven/copywrite # waiting for https://github.com/hashicorp/copywrite/pull/120 to be merged
rev: 937f17f09c46992447dfa8977bb96eda512588c4 rev: 9d021bf61a094a5eac6ae3084ceed2dda4700a73
hooks: hooks:
- id: add-headers - id: add-headers

View File

@@ -271,7 +271,7 @@ class App(discord.Bot):
uvicorn_options["server_header"] = uvicorn_options.get("server_header", False) uvicorn_options["server_header"] = uvicorn_options.get("server_header", False)
config = self._UvicornConfig(self._app, **uvicorn_options) config = self._UvicornConfig(self._app, **uvicorn_options)
server = self._UvicornServer(config) server = self._UvicornServer(config)
self._connection.application_id = int(base64.b64decode(token.split(".")[0] + "==").decode("utf-8")) self._connection.application_id = int(base64.b64decode(token.split(".", maxsplit=1)[0] + "==").decode("utf-8"))
try: try:
self.dispatch("connect") self.dispatch("connect")
await server.serve() await server.serve()