Skip to content

ci(lint): check old and new versions #127

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

Merged
merged 7 commits into from
Jun 15, 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
10 changes: 5 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
fail-fast: false
steps:
- name: Check out repository
Expand All @@ -21,13 +21,13 @@ jobs:
id: setup-python
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: ${{ matrix.python-version }}

- name: Load cached Poetry installation
uses: actions/cache@v4
with:
path: ~/.local
key: poetry-0
key: poetry-${{ matrix.python-version }}-${{ hashFiles('**/pyproject.toml') }}

- name: Install Poetry
uses: snok/install-poetry@v1
Expand All @@ -44,7 +44,7 @@ jobs:
run: echo "PYRIGHT_VERSION=$(python -c 'import pyright; print(pyright.__pyright_version__)')" >> $GITHUB_ENV

- name: Run pyright (Linux)
uses: jakebailey/pyright-action@v1.4.1
uses: jakebailey/pyright-action@v2
with:
version: ${{ env.PYRIGHT_VERSION }}
python-version: ${{ matrix.python-version }}
Expand All @@ -54,7 +54,7 @@ jobs:
warnings: true

- name: Run pyright (Windows)
uses: jakebailey/pyright-action@v1.4.1
uses: jakebailey/pyright-action@v2
# run anyway
if: success() || failure()
with:
Expand Down
4 changes: 2 additions & 2 deletions mafic/__libraries.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@
# Ignore RuntimeWarning as we import the warning to filter :}
simplefilter("ignore", RuntimeWarning)
try:
from nextcord.health_check import DistributionWarning
from nextcord.health_check import DistributionWarning # type: ignore
except ImportError:
# nextcord >= 3.0
pass
else:
simplefilter("ignore", DistributionWarning)
simplefilter("ignore", DistributionWarning) # type: ignore
finally:
simplefilter("always", RuntimeWarning)

Expand Down
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,14 @@ typing-extensions = "^4.3.0"
ruff = "^0.0.251"

[tool.poetry.group.lint.dependencies]
nextcord = "^2.0.0"
nextcord = [
{ version = "^3.0.1", python = "^3.12"},
{ version = "^2.0.0", python = "<3.12" },
]
disnake = "^2.0.0"
py-cord = "^2.0.0"
"discord.py" = "^2.0.0"
orjson = "^3.8.0"
orjson = "^3.5.0"

[tool.poetry.group.docs.dependencies]
sphinx = "^6.1.3"
Expand Down
Loading