Skip to content

Commit a8a220c

Browse files
committed
fix: lint
fix: action
1 parent b07f945 commit a8a220c

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
lint:
77
strategy:
88
matrix:
9-
cmd: [ "black", "ruff", "mypy" ]
9+
cmd: [ "black", "ruff-check", "mypy" ]
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v5

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ repos:
4141
rev: v0.15.0
4242
hooks:
4343
- id: ruff-format
44-
- id: ruff
44+
- id: ruff-check
4545
args: [ --fix, --unsafe-fixes ]
4646

4747
- repo: https://github.com/pre-commit/mirrors-mypy

taskiq_pipelines/pipeliner.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# mypy: ignore-errors
2+
# Temporary ignore, because of some mypy issues with pydantic models and typing.
3+
14
from types import CoroutineType
25
from typing import (
36
Any,

taskiq_pipelines/steps/filter.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ async def filter_tasks( # noqa: C901
3838
:param context: context of the execution, defaults to default_context
3939
:param skip_errors: skip errors of subtasks, defaults to False
4040
:raises TaskiqError: if any subtask has returned error.
41-
:return: fitlered results.
41+
:return: filtered results.
4242
"""
4343
ordered_ids = task_ids[:]
4444
tasks_set = set(task_ids)
@@ -56,7 +56,8 @@ async def filter_tasks( # noqa: C901
5656
filtered_results = []
5757
for task_id, value in zip(
5858
ordered_ids,
59-
results.return_value, # type: ignore
59+
results.return_value,
60+
strict=False, # type: ignore
6061
):
6162
result = await context.broker.result_backend.get_result(task_id)
6263
if result.is_err:

0 commit comments

Comments
 (0)