2 Commits

Author SHA1 Message Date
Paillat
46ef5010da Merge branch 'main' into bump-pycord-rc 2025-08-31 12:43:50 +02:00
26245d80f0 ⬆️ Upgrade to pycord 2.7 rc1 2025-08-31 12:35:47 +02:00
7 changed files with 283 additions and 726 deletions

View File

@@ -9,15 +9,15 @@ jobs:
runs-on: ubuntu-latest
environment: pypi
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v4
- name: "Install uv"
uses: astral-sh/setup-uv@v7
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
- name: "Set up Python"
uses: actions/setup-python@v6
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"

View File

@@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@v4
- name: Setup Copywrite
uses: hashicorp/setup-copywrite@32f9f1c86f661b8a51100768976a06f1b281a035
- name: Check Header Compliance
@@ -35,15 +35,15 @@ jobs:
name: ${{ matrix.name }}
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v4
- name: "Install uv"
uses: astral-sh/setup-uv@v7
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
- name: "Set up Python"
uses: actions/setup-python@v6
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"

View File

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

View File

@@ -10,7 +10,7 @@ authors = [
{ name = "Paillat-dev", email = "me@paillat.dev" }
]
license = "MIT"
requires-python = ">=3.12, <4.0"
requires-python = "==3.12.*"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",

View File

@@ -1,13 +1,25 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"local>nicebots-xyz/renovate-config",
":semanticPrefixFixDepsChoreOthers",
":dependencyDashboard"
],
"forkProcessing": "enabled",
"baseBranchPatterns": ["main"],
"lockFileMaintenance": {
"enabled": true
"extends": ["config:recommended"],
"baseBranches": ["main"],
"labels": ["deps"],
"ignorePaths": ["requirements.txt"],
"commitMessagePrefix": "⬆️",
"commitMessageAction": "Upgrade",
"packageRules": [
{
"matchUpdateTypes": ["pin"],
"commitMessagePrefix": "📌",
"commitMessageAction": "Pin"
},
{
"matchUpdateTypes": ["rollback"],
"commitMessagePrefix": "⬇️",
"commitMessageAction": "Downgrade"
},
{
"matchDatasources": ["pypi"],
"addLabels": ["pypi"]
}
]
}

View File

@@ -1,7 +1,6 @@
# Copyright (c) Paillat-dev
# SPDX-License-Identifier: MIT
import base64
import functools
import logging
import warnings
@@ -91,7 +90,7 @@ class App(discord.Bot):
item.refresh_state(interaction)
# Code taken from View._dispatch_item
if view._stopped.done(): # noqa: SLF001 # pyright: ignore [reportPrivateUsage]
if view._View__stopped.done(): # noqa: SLF001 # pyright: ignore [reportAttributeAccessIssue, reportUnknownMemberType]
return
if interaction.message:
@@ -271,7 +270,6 @@ class App(discord.Bot):
uvicorn_options["server_header"] = uvicorn_options.get("server_header", False)
config = self._UvicornConfig(self._app, **uvicorn_options)
server = self._UvicornServer(config)
self._connection.application_id = int(base64.b64decode(token.split(".")[0] + "==").decode("utf-8"))
try:
self.dispatch("connect")
await server.serve()

951
uv.lock generated

File diff suppressed because it is too large Load Diff