Skip to content

Commit f487e29

Browse files
committed
DX: replace tox with poethepoet
1 parent 6aafb23 commit f487e29

13 files changed

Lines changed: 137 additions & 163 deletions

.github/workflows/cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ on:
99
jobs:
1010
milestone:
1111
if: startsWith(github.ref, 'refs/tags')
12-
uses: ComPWA/actions/.github/workflows/close-milestone.yml@v2
12+
uses: ComPWA/actions/.github/workflows/close-milestone.yml@v3
1313
push:
1414
if: startsWith(github.ref, 'refs/tags') && !github.event.release.prerelease
1515
secrets: inherit
16-
uses: ComPWA/actions/.github/workflows/push-to-version-branches.yml@v2
16+
uses: ComPWA/actions/.github/workflows/push-to-version-branches.yml@v3

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ on:
2525

2626
jobs:
2727
doc:
28-
uses: ComPWA/actions/.github/workflows/ci-docs.yml@v2.1
28+
uses: ComPWA/actions/.github/workflows/ci-docs.yml@v3.0
2929
permissions:
3030
pages: write
3131
id-token: write
@@ -37,4 +37,4 @@ jobs:
3737
if: inputs.specific-pip-packages == ''
3838
secrets:
3939
token: ${{ secrets.PAT }}
40-
uses: ComPWA/actions/.github/workflows/pre-commit.yml@v2.1
40+
uses: ComPWA/actions/.github/workflows/pre-commit.yml@v3.0

.github/workflows/clean-caches.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
name: Remove caches
1717
runs-on: ubuntu-24.04
1818
steps:
19-
- uses: ComPWA/actions/clean-caches@v2
19+
- uses: ComPWA/actions/clean-caches@v3
2020
with:
2121
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2222
ref: ${{ inputs.ref }}

.github/workflows/lock.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ on:
1717

1818
jobs:
1919
lock:
20-
uses: ComPWA/actions/.github/workflows/lock.yml@v2
20+
uses: ComPWA/actions/.github/workflows/lock.yml@v3
2121
secrets:
2222
token: ${{ secrets.PAT }}

.github/workflows/pr-linting.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ on:
1111

1212
jobs:
1313
lint-pr:
14-
uses: ComPWA/actions/.github/workflows/pr-linting.yml@v2
14+
uses: ComPWA/actions/.github/workflows/pr-linting.yml@v3

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ prof/
3535

3636
# Virtual environments
3737
*venv/
38-
.tox/
3938
pyvenv*/
4039

4140
# Settings

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ repos:
1414
- id: check-useless-excludes
1515

1616
- repo: https://github.com/ComPWA/policy
17-
rev: 0.6.5
17+
rev: 67a41477b9ccb7b8910224a2374c35745c4612aa
1818
hooks:
1919
- id: check-dev-files
2020
args:

.readthedocs.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,11 @@ build:
1111
pixi global install graphviz uv
1212
- |-
1313
export UV_LINK_MODE=copy
14-
export UV_TOOL_BIN_DIR=$READTHEDOCS_VIRTUALENV_PATH/bin
15-
uv tool install --with tox-uv tox
1614
uv run \
1715
--group doc \
1816
--no-dev \
19-
tox -e doc
17+
--with poethepoet \
18+
poe doc
2019
mkdir -p $READTHEDOCS_OUTPUT
2120
mv docs/_build/html $READTHEDOCS_OUTPUT
2221

.taplo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ reorder_keys = true
1313

1414
[[rule]]
1515
include = ["**/pyproject.toml"]
16-
keys = ["tool.tox"]
16+
keys = ["tool.poe.tasks"]
1717

1818
[rule.formatting]
1919
reorder_arrays = false

CONTRIBUTING.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,8 @@ and [`pre-commit install`](https://pre-commit.com/#3-install-the-git-hook-script
3131
pre-commit install --install-hooks
3232
```
3333

34-
In addition, it may be handy to install `tox`:
34+
If the repository provides a [`[tool.poe.tasks]`](https://poethepoet.natn.io) configuration under [`pyproject.toml`](./pyproject.toml), you can see which jobs it defines with:
3535

3636
```shell
37-
uv tool install tox --with tox-uv
38-
```
39-
40-
If the repository provides a Tox configuration under [`pyproject.toml`](./pyproject.toml), you can see which jobs it defines with:
41-
42-
```shell
43-
tox list
37+
poe
4438
```

0 commit comments

Comments
 (0)