Skip to content

Commit d36eba8

Browse files
committed
Merge branch 'release/0.0.8'
2 parents 8694c7d + aff781d commit d36eba8

25 files changed

+1203
-353
lines changed

.flake8

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ per-file-ignores =
9595
test_*.py,tests.py,tests_*.py,*/tests/*:
9696
; Use of assert detected
9797
S101,
98+
; Found magic number
99+
WPS432,
100+
; Missing parameter(s) in Docstring
101+
DAR101,
98102

99103
exclude =
100104
./.git,

.github/workflows/test.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ jobs:
4646
- name: Run mypy check
4747
run: poetry run mypy .
4848
pytest:
49+
permissions:
50+
checks: write
51+
pull-requests: write
52+
contents: write
4953
strategy:
5054
matrix:
5155
py_version: ["3.7", "3.8", "3.9", "3.10"]
@@ -66,4 +70,13 @@ jobs:
6670
env:
6771
POETRY_VIRTUALENVS_CREATE: false
6872
- name: Run pytest check
69-
run: poetry run pytest -vv --cov="taskiq" .
73+
run: poetry run pytest -vv -n auto --cov="taskiq" .
74+
- name: Generate report
75+
run: coverage xml
76+
- name: Upload coverage reports to Codecov with GitHub Action
77+
uses: codecov/codecov-action@v3
78+
if: matrix.os == 'ubuntu-latest' && matrix.py_version == '3.9'
79+
with:
80+
token: ${{ secrets.CODECOV_TOKEN }}
81+
fail_ci_if_error: true
82+
verbose: true

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ __pycache__/
55

66
# C extensions
77
*.so
8+
coverage.*
89

910
# Distribution / packaging
1011
.Python

poetry.lock

Lines changed: 175 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "taskiq"
3-
version = "0.0.7"
3+
version = "0.0.8"
44
description = "Distributed task queue with full async support"
55
authors = ["Pavel Kirilin <[email protected]>"]
66
maintainers = ["Pavel Kirilin <[email protected]>"]
@@ -45,6 +45,10 @@ autoflake = "^1.4"
4545
wemake-python-styleguide = "^0.16.1"
4646
coverage = "^6.4.2"
4747
pytest-cov = "^3.0.0"
48+
mock = "^4.0.3"
49+
anyio = "^3.6.1"
50+
pytest-xdist = {version = "^2.5.0", extras = ["psutil"]}
51+
types-mock = "^4.0.15"
4852

4953
[tool.poetry.extras]
5054
zmq = ["pyzmq"]

taskiq/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@
77
from taskiq.brokers.shared_broker import async_shared_broker
88
from taskiq.brokers.zmq_broker import ZeroMQBroker
99
from taskiq.exceptions import TaskiqError
10+
from taskiq.funcs import gather
1011
from taskiq.message import BrokerMessage, TaskiqMessage
1112
from taskiq.result import TaskiqResult
1213
from taskiq.task import AsyncTaskiqTask
1314

1415
__all__ = [
16+
"gather",
1517
"AsyncBroker",
1618
"TaskiqError",
1719
"TaskiqResult",

taskiq/abc/broker.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@
77
from typing import ( # noqa: WPS235
88
TYPE_CHECKING,
99
Any,
10-
AsyncGenerator,
1110
Callable,
1211
Coroutine,
1312
Dict,
1413
List,
15-
NoReturn,
1614
Optional,
1715
TypeVar,
1816
Union,

0 commit comments

Comments
 (0)