diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 1f5ce71..d331850 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -5,18 +5,18 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ] + python-version: [ '3.9', '3.10', '3.11', '3.12', '3.13' ] os: [ ubuntu-latest ] fail-fast: false name: ${{ matrix.python-version }} ${{ matrix.os }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - architecture: 'x64' + architecture: x64 - name: pytest via nox run: | python -m pip install nox diff --git a/doc_requirements.txt b/doc_requirements.txt index 737c20e..bbe174e 100644 --- a/doc_requirements.txt +++ b/doc_requirements.txt @@ -1,2 +1,2 @@ -furo~=2022.1.2 -sphinx==4.4.0 \ No newline at end of file +furo==2024.04.27 +sphinx==7.4.7 \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index dad8b0c..dd968cc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.black] line-length = 120 -target-version = ["py38"] +target-version = ["py39"] include = ".*py$" [tool.isort] @@ -17,7 +17,7 @@ namespace_packages = true no_implicit_optional = true implicit_reexport = true pretty = true -python_version = 3.8 +python_version = 3.9 show_column_numbers = true show_error_codes = true show_error_context = true diff --git a/requirements.txt b/requirements.txt index f709f1e..f9e95f2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -hikari>=2.0.0.dev122 +hikari>=2.0.0 diff --git a/setup.py b/setup.py index 3563fe1..6f1744f 100644 --- a/setup.py +++ b/setup.py @@ -55,18 +55,18 @@ def parse_requirements_file(path): ':sys_platform=="win32"': ["colorama"], "docs": parse_requirements_file("doc_requirements.txt"), }, - python_requires=">=3.8.0,<3.13", + python_requires=">=3.9.0,<3.14", classifiers=[ "Development Status :: 5 - Production/Stable", "Framework :: AsyncIO", "Intended Audience :: Developers", "Natural Language :: English", "Topic :: Software Development :: Libraries :: Python Modules", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: 3 :: Only", "Topic :: Software Development :: Libraries", diff --git a/tests/utils.py b/tests/utils.py index 864bd63..14ba77c 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -55,6 +55,7 @@ def make_member(roles: list[hikari.Role] = None): role_ids=[role.id for role in roles], user=None, guild_avatar_hash=None, + guild_flags=None, ) GLOBAL_ROLES[id(member)] = roles diff --git a/toolbox/commands.py b/toolbox/commands.py index 27bb4d5..df05c54 100644 --- a/toolbox/commands.py +++ b/toolbox/commands.py @@ -26,33 +26,27 @@ def _list_to_command_choices( @t.overload -def as_command_choices(choices: t.Sequence[ChoiceTypes]) -> t.Sequence[hikari.CommandChoice]: - ... +def as_command_choices(choices: t.Sequence[ChoiceTypes]) -> t.Sequence[hikari.CommandChoice]: ... @t.overload -def as_command_choices(choices: t.Sequence[t.Sequence[ChoiceTypes]]) -> t.Sequence[hikari.CommandChoice]: - ... +def as_command_choices(choices: t.Sequence[t.Sequence[ChoiceTypes]]) -> t.Sequence[hikari.CommandChoice]: ... @t.overload -def as_command_choices(choices: t.Dict[str, ChoiceTypes]) -> t.Sequence[hikari.CommandChoice]: - ... +def as_command_choices(choices: t.Dict[str, ChoiceTypes]) -> t.Sequence[hikari.CommandChoice]: ... @t.overload -def as_command_choices(*args: ChoiceTypes) -> t.Sequence[hikari.CommandChoice]: - ... +def as_command_choices(*args: ChoiceTypes) -> t.Sequence[hikari.CommandChoice]: ... @t.overload -def as_command_choices(*args: t.Sequence[ChoiceTypes]) -> t.Sequence[hikari.CommandChoice]: - ... +def as_command_choices(*args: t.Sequence[ChoiceTypes]) -> t.Sequence[hikari.CommandChoice]: ... @t.overload -def as_command_choices(**kwargs: ChoiceTypes) -> t.Sequence[hikari.CommandChoice]: - ... +def as_command_choices(**kwargs: ChoiceTypes) -> t.Sequence[hikari.CommandChoice]: ... def as_command_choices(*args: t.Any, **kwargs: t.Any) -> t.Sequence[hikari.CommandChoice]: diff --git a/toolbox/strings.py b/toolbox/strings.py index 2e80ade..b417e5d 100644 --- a/toolbox/strings.py +++ b/toolbox/strings.py @@ -1,7 +1,8 @@ import datetime import re import typing as t -from enum import Enum, IntFlag +from enum import Enum +from enum import IntFlag __all__: t.Sequence[str] = ( "format_dt",