Skip to content

Commit 91b0e56

Browse files
authored
Merge pull request #32 from taskiq-python/feature/github-flow
2 parents 8fdbc43 + 63fa139 commit 91b0e56

File tree

10 files changed

+747
-1204
lines changed

10 files changed

+747
-1204
lines changed

.flake8

Lines changed: 0 additions & 104 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ jobs:
1515
- name: Set up Python
1616
uses: actions/setup-python@v4
1717
with:
18-
python-version: "3.9"
18+
python-version: "3.11"
1919
- name: Install deps
2020
run: poetry install
21+
- name: Set verison
22+
run: poetry version "${{ github.ref_name }}"
2123
- name: Release package
2224
env:
2325
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}

.github/workflows/test.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ jobs:
88
matrix:
99
cmd:
1010
- black
11-
- flake8
12-
- isort
11+
- ruff
1312
- mypy
14-
- autoflake
1513
runs-on: ubuntu-latest
1614
steps:
1715
- uses: actions/checkout@v2
@@ -20,7 +18,7 @@ jobs:
2018
- name: Set up Python
2119
uses: actions/setup-python@v4
2220
with:
23-
python-version: "3.9"
21+
python-version: "3.11"
2422
cache: "poetry"
2523
- name: Install deps
2624
run: poetry install
@@ -43,7 +41,7 @@ jobs:
4341
- 5672:5672
4442
strategy:
4543
matrix:
46-
py_version: ["3.8", "3.9", "3.10", "3.11"]
44+
py_version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
4745
runs-on: "ubuntu-latest"
4846
steps:
4947
- uses: actions/checkout@v2

.pre-commit-config.yaml

Lines changed: 17 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -6,52 +6,40 @@ repos:
66
hooks:
77
- id: check-ast
88
- id: trailing-whitespace
9-
exclude: 'README.md'
109
- id: check-toml
1110
- id: end-of-file-fixer
1211

1312
- repo: https://github.com/asottile/add-trailing-comma
1413
rev: v2.1.0
1514
hooks:
16-
- id: add-trailing-comma
15+
- id: add-trailing-comma
1716

1817
- repo: local
1918
hooks:
2019
- id: black
2120
name: Format with Black
22-
entry: black
21+
entry: poetry run black
2322
language: system
2423
types: [python]
2524

26-
- id: autoflake
27-
name: autoflake
28-
entry: autoflake
29-
language: system
30-
types: [ python ]
31-
args: [ --in-place, --remove-all-unused-imports, --remove-duplicate-keys ]
32-
33-
- id: isort
34-
name: isort
35-
entry: isort
36-
language: system
37-
types: [ python ]
38-
39-
- id: flake8
40-
name: Check with Flake8
41-
entry: flake8
25+
- id: ruff
26+
name: Run ruff lints
27+
entry: poetry run ruff
4228
language: system
4329
pass_filenames: false
44-
types: [ python ]
45-
args: [--count, taskiq_aio_pika]
30+
types: [python]
31+
args:
32+
- "check"
33+
- "--fix"
34+
- "taskiq_aio_pika"
35+
- "tests"
4636

4737
- id: mypy
4838
name: Validate types with MyPy
49-
entry: mypy
39+
entry: poetry run mypy
5040
language: system
51-
types: [ python ]
52-
53-
- id: yesqa
54-
name: Remove usless noqa
55-
entry: yesqa
56-
language: system
57-
types: [ python ]
41+
types: [python]
42+
pass_filenames: false
43+
args:
44+
- ./taskiq_aio_pika
45+
- ./tests

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ You can send delayed messages and set priorities to messages using labels.
2424

2525
To send delayed message, you have to specify
2626
delay label. You can do it with `task` decorator,
27-
or by using kicker.
27+
or by using kicker.
2828
In this type of delay we are using additional queue with `expiration` parameter and after with time message will be deleted from `delay` queue and sent to the main taskiq queue.
2929
For example:
3030

@@ -58,9 +58,9 @@ To send delayed message you can install `rabbitmq-delayed-message-exchange`
5858
plugin https://github.com/rabbitmq/rabbitmq-delayed-message-exchange.
5959

6060
And you need to configure you broker.
61-
There is `delayed_message_exchange_plugin` `AioPikaBroker` parameter and it must be `True` to turn on delayed message functionality.
61+
There is `delayed_message_exchange_plugin` `AioPikaBroker` parameter and it must be `True` to turn on delayed message functionality.
6262

63-
The delay plugin can handle tasks with different delay times well, and the delay based on dead letter queue is suitable for tasks with the same delay time.
63+
The delay plugin can handle tasks with different delay times well, and the delay based on dead letter queue is suitable for tasks with the same delay time.
6464
For example:
6565

6666
```python

0 commit comments

Comments
 (0)