Skip to content
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
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
permissions:
id-token: write
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: astral-sh/setup-uv@v7
- uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
with:
enable-cache: false
python-version: "3.12"
Expand Down
17 changes: 7 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,35 +12,32 @@ permissions:

jobs:
lint:
strategy:
matrix:
cmd: [ "black", "ruff", "mypy" ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- id: setup-uv
uses: astral-sh/setup-uv@v7
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
with:
version: "latest"
python-version: "3.13"
- name: Install deps
run: uv sync --all-extras
- name: Run lint check
run: uv run pre-commit run -a ${{ matrix.cmd }}
run: uv run prek run -a
pytest:
strategy:
matrix:
py_version: [ "3.10", "3.11", "3.12", "3.13" ]
py_version: [ "3.10", "3.11", "3.12", "3.13", "3.14" ]
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Redis instance and Redis cluster
run: docker compose up -d --wait
- name: Set up uv and enable cache
id: setup-uv
uses: astral-sh/setup-uv@v7
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
with:
enable-cache: true
cache-suffix: "${{ matrix.py_version }}"
Expand All @@ -53,7 +50,7 @@ jobs:
- name: Generate coverage report
run: uv run coverage xml
- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v5
uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
if: matrix.py_version == '3.10'
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
11 changes: 1 addition & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
- repo: builtin
hooks:
- id: check-ast
- id: trailing-whitespace
- id: check-toml
- id: end-of-file-fixer

- repo: https://github.com/asottile/add-trailing-comma
rev: v4.0.0
hooks:
- id: add-trailing-comma

- repo: local
hooks:
- id: black
Expand Down
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "taskiq-redis"
version = "0.0.0"
description = "Redis integration for taskiq"
readme = "README.md"
requires-python = ">=3.10"
requires-python = ">=3.10,<4"
license = "MIT"
license-files = ["LICENSE"]
authors = [{ name = "Taskiq team", email = "taskiq@no-reply.com" }]
Expand All @@ -24,6 +24,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"redis>=8.0.0,<9",
Expand All @@ -36,14 +37,15 @@ repository = "https://github.com/taskiq-python/taskiq-redis"

[dependency-groups]
dev = [
"pre-commit>=4.5.0",
"prek>=0.5.4",
{ include-group = "lint" },
{ include-group = "test" },
]
lint = [
"black>=25.11.0",
"mypy>=2.3.1",
"ruff>=0.16.9",
"zizmor>=1.30.1",
]
test = [
"fakeredis>=2.32.1",
Expand Down
Loading
Loading