Skip to content

Commit 1905484

Browse files
authored
Merge branch 'master' into master
2 parents b31f429 + fc33b02 commit 1905484

File tree

127 files changed

+9306
-6628
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+9306
-6628
lines changed
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: Bug Report
2+
description: File a bug report to help us improve
3+
title: "Short description of the bug"
4+
labels: ["bug"]
5+
6+
body:
7+
- type: markdown
8+
attributes:
9+
value: |
10+
Thanks for taking the time to fill out this bug report!
11+
12+
- type: input
13+
id: version
14+
attributes:
15+
label: Taskiq version
16+
description: What version of Taskiq are you running?
17+
placeholder: e.g., 0.12.0
18+
validations:
19+
required: true
20+
21+
- type: dropdown
22+
id: python-version
23+
attributes:
24+
label: Python version
25+
description: What version of Python are you using?
26+
options:
27+
- Python 3.9 or lower
28+
- Python 3.10
29+
- Python 3.11
30+
- Python 3.12
31+
- Python 3.13
32+
- Python 3.14
33+
- Python 3.14t
34+
validations:
35+
required: true
36+
37+
- type: input
38+
id: os
39+
attributes:
40+
label: OS
41+
description: What OS are you using?
42+
placeholder: e.g., Windows, Linux, macOS
43+
validations:
44+
required: true
45+
46+
- type: textarea
47+
id: what-happened
48+
attributes:
49+
label: What happened?
50+
description: A clear and concise description of what the bug is.
51+
placeholder: Tell us what you see!
52+
validations:
53+
required: true
54+
55+
- type: textarea
56+
id: logs
57+
attributes:
58+
label: Relevant log output
59+
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
60+
render: shell
61+
validations:
62+
required: false
63+
64+
- type: textarea
65+
id: broker-init-file
66+
attributes:
67+
label: Broker initialization code
68+
description: Provide minimal code from the taskiq broker initialization file
69+
render: python
70+
validations:
71+
required: false
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Feature Request
2+
description: Suggest an idea for this project
3+
title: "Short description of feature"
4+
labels: ["enhancement"]
5+
assignees:
6+
- s3rius
7+
8+
body:
9+
- type: markdown
10+
attributes:
11+
value: |
12+
Thanks for suggesting a new feature!
13+
14+
- type: textarea
15+
id: problem-description
16+
attributes:
17+
label: Is your feature request related to a problem?
18+
description: A clear and concise description of what the problem is.
19+
placeholder: I'm always frustrated when...
20+
validations:
21+
required: true
22+
23+
- type: textarea
24+
id: solution-description
25+
attributes:
26+
label: Describe the solution you'd like
27+
description: A clear and concise description of what you want to happen.
28+
validations:
29+
required: true
30+
31+
- type: textarea
32+
id: alternatives
33+
attributes:
34+
label: Describe alternatives you've considered
35+
description: A clear and concise description of any alternative solutions or features you've considered.
36+
validations:
37+
required: false
38+
39+
- type: dropdown
40+
id: component
41+
attributes:
42+
label: Which component would this affect?
43+
description: Select the component this feature would primarily affect
44+
options:
45+
- Broker
46+
- Result Backend
47+
- Scheduler Source
48+
- Configuration
49+
- Documentation
50+
- Other
51+
validations:
52+
required: true

.github/workflows/release.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,22 @@ on:
88
jobs:
99
deploy:
1010
runs-on: ubuntu-latest
11+
environment:
12+
name: release
13+
permissions:
14+
id-token: write
1115
steps:
1216
- uses: actions/checkout@v5
1317
with:
1418
persist-credentials: false
15-
- name: Install poetry
16-
run: pipx install poetry
17-
- name: Set up Python
18-
uses: actions/setup-python@v6
19+
- uses: astral-sh/setup-uv@v7
1920
with:
20-
python-version: "3.11"
21-
- name: Install deps
22-
run: poetry install
23-
- name: Set version
24-
run: poetry version "${GITHUB_REF_NAME}"
21+
enable-cache: false
22+
python-version: "3.12"
23+
version: "latest"
24+
- run: uv version "${GITHUB_REF_NAME}"
25+
- run: uv build
2526
- name: Release package
2627
env:
27-
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
28-
run: poetry publish --build
28+
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
29+
run: uv publish

.github/workflows/release_docs.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,16 @@ jobs:
1616
- uses: actions/checkout@v5
1717
with:
1818
persist-credentials: false
19+
fetch-depth: 0
1920
- name: Setup pnpm
2021
uses: pnpm/action-setup@v4
2122
- name: Setup Node.js
2223
uses: actions/setup-node@v6
2324
with:
24-
node-version: 18
25+
node-version: 22
2526
cache: pnpm
2627
- name: Install deps
27-
run: pnpm install
28+
run: pnpm install --prod
2829
- name: Build
2930
run: pnpm docs:build -d docs_dist
3031

.github/workflows/test.yml

Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -19,55 +19,52 @@ jobs:
1919
lint:
2020
strategy:
2121
matrix:
22-
cmd:
23-
- black
24-
- ruff
25-
- mypy
22+
cmd: ["black", "ruff", "mypy"]
2623
runs-on: ubuntu-latest
2724
steps:
2825
- uses: actions/checkout@v5
2926
with:
3027
persist-credentials: false
31-
- name: Install poetry
32-
run: pipx install poetry
33-
- name: Set up Python
34-
uses: actions/setup-python@v6
28+
- id: setup-uv
29+
uses: astral-sh/setup-uv@v7
3530
with:
36-
python-version: "3.11"
37-
cache: "poetry"
31+
enable-cache: true
32+
cache-suffix: 3.11
33+
version: "latest"
34+
python-version: 3.11
3835
- name: Install deps
39-
run: poetry install --all-extras
36+
run: uv sync --all-extras
4037
- name: Run lint check
41-
run: poetry run pre-commit run -a ${{ matrix.cmd }}
38+
run: uv run pre-commit run -a ${{ matrix.cmd }}
4239
pytest:
4340
strategy:
4441
matrix:
45-
py_version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
42+
py_version: ["3.10", "3.11", "3.12", "3.13"]
4643
pydantic_ver: ["<2", ">=2.5,<3"]
4744
os: [ubuntu-latest, windows-latest, macos-latest]
4845
runs-on: "${{ matrix.os }}"
4946
steps:
5047
- uses: actions/checkout@v5
5148
with:
5249
persist-credentials: false
53-
- name: Install poetry
54-
run: pipx install poetry
55-
- name: Set up Python
56-
uses: actions/setup-python@v6
50+
- id: setup-uv
51+
uses: astral-sh/setup-uv@v7
5752
with:
58-
python-version: "${{ matrix.py_version }}"
59-
cache: "poetry"
53+
enable-cache: true
54+
cache-suffix: ${{ matrix.py_version }}
55+
version: "latest"
56+
python-version: ${{ matrix.py_version }}
6057
- name: Install deps
61-
run: poetry install --all-extras
58+
run: uv sync --all-extras
6259
- name: Setup pydantic version
63-
run: poetry run pip install "pydantic ${{ matrix.pydantic_ver }}"
60+
run: uv pip install "pydantic ${{ matrix.pydantic_ver }}"
6461
- name: Run pytest check
65-
run: poetry run pytest -vv -n auto --cov="taskiq" .
62+
run: uv run pytest -vv -n auto --cov="taskiq" .
6663
- name: Generate report
67-
run: poetry run coverage xml
64+
run: uv run coverage xml
6865
- name: Upload coverage reports to Codecov with GitHub Action
6966
uses: codecov/codecov-action@v5
70-
if: matrix.os == 'ubuntu-latest' && matrix.py_version == '3.9'
67+
if: matrix.os == 'ubuntu-latest' && matrix.py_version == '3.10'
7168
with:
7269
fail_ci_if_error: false
7370
token: ${{ secrets.CODECOV_TOKEN }}

.pre-commit-config.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ repos:
3333
hooks:
3434
- id: black
3535
name: Format with Black
36-
entry: poetry run black
36+
entry: uv run black
3737
language: system
3838
types: [python]
3939

4040
- id: ruff
4141
name: Run ruff lints
42-
entry: poetry run ruff
42+
entry: uv run ruff
4343
language: system
4444
pass_filenames: false
4545
types: [python]
@@ -48,10 +48,11 @@ repos:
4848
- "--fix"
4949
- "taskiq"
5050
- "tests"
51+
- "docs/examples"
5152

5253
- id: mypy
5354
name: Validate types with MyPy
54-
entry: poetry run mypy
55+
entry: uv run mypy
5556
language: system
5657
pass_filenames: false
5758
types: [python]

.python-version

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@
22
3.12.8
33
3.11.11
44
3.10.16
5-
3.9.21

docs/.vuepress/config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ export default defineUserConfig({
1414
content: "https://taskiq-python.github.io/logo.svg",
1515
},
1616
],
17+
["link", { rel: "icon", href: "/favicon.ico", type: "image/x-icon" }],
18+
["link", { rel: "icon", href: "/favicon.svg", type: "image/svg+xml" }],
19+
["link", { rel: "apple-touch-icon", href: "/favicon.png" }],
1720
],
1821

1922
bundler: viteBundler(),

docs/.vuepress/public/favicon.png

2.71 KB
Loading

docs/.vuepress/public/favicon.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)