Skip to content

Commit 115ff4b

Browse files
committed
chore: Update dependencies, add upper bounds for Python and package versions, and reorder imports.
chore: Replace Poetry with UV for dependency management in devcontainer. Chore: Rename Codecov workflow job name to 'Test Coverage'. build: update ruff pre-commit hook to v0.14.6
1 parent eafd06d commit 115ff4b

25 files changed

Lines changed: 101 additions & 95 deletions

.devcontainer/devcontainer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"name": "Default Linux Universal",
33
"image": "mcr.microsoft.com/devcontainers/universal:2-linux",
44
"features": {
5-
"ghcr.io/devcontainers-contrib/features/poetry:2": {}
5+
"ghcr.io/jsburckhardt/devcontainer-features/uv:1": {}
66
},
7-
"postCreateCommand": "poetry config virtualenvs.in-project true && poetry install && poetry run pre-commit install",
7+
"postCreateCommand": "uv sync && uv run pre-commit install",
88
"customizations": {
99
"vscode": {
1010
"settings": {
@@ -49,4 +49,4 @@
4949
]
5050
}
5151
}
52-
}
52+
}

.github/workflows/codecov.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,20 @@ on:
77
jobs:
88
test:
99
runs-on: ubuntu-latest
10-
name: Run Pytest and Upload Coverage
10+
name: Test Coverage
11+
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
16+
1117
steps:
12-
- uses: actions/checkout@v5
18+
- uses: actions/checkout@v6
1319

1420
- name: Setup Python environment
1521
uses: ./.github/actions/setup-python
22+
with:
23+
python-version: ${{ matrix.python-version }}
1624

1725
- name: Run Pytest
1826
run: uv run pytest --cov-report xml

.github/workflows/release.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,28 @@ jobs:
1212
id-token: write
1313
contents: write
1414
steps:
15-
- uses: actions/checkout@v5
15+
- uses: actions/checkout@v6
1616

1717
- name: Setup Python environment
1818
uses: ./.github/actions/setup-python
1919

2020
- name: Get Version
2121
id: version
2222
run: |
23-
echo "VERSION=$(poetry version -s)" >> $GITHUB_OUTPUT
23+
echo "VERSION=$(uv version --short)" >> $GITHUB_OUTPUT
2424
echo "TAG_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
2525
echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
2626
2727
- name: Check Version
2828
if: steps.version.outputs.VERSION != steps.version.outputs.TAG_VERSION
2929
run: exit 1
3030

31-
- name: Build Package
32-
run: uv build
33-
34-
- name: Publish Package to PyPI
35-
uses: pypa/gh-action-pypi-publish@release/v1
31+
- name: Build and Publish Package
32+
run: |
33+
uv build
34+
uv publish
3635
3736
- name: Publish Package to GitHub
38-
run: |
39-
gh release upload --clobber ${{ steps.version.outputs.TAG_NAME }} dist/*.tar.gz dist/*.whl
37+
run: gh release upload --clobber ${{ steps.version.outputs.TAG_NAME }} dist/*.tar.gz dist/*.whl
4038
env:
4139
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/ruff.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
name: Ruff Lint
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v5
18+
- uses: actions/checkout@v6
1919

2020
- name: Run Ruff Lint
21-
uses: chartboost/ruff-action@v1
21+
uses: astral-sh/ruff-action@v3

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ci:
77
autoupdate_commit_msg: ":arrow_up: auto update by pre-commit hooks"
88
repos:
99
- repo: https://github.com/astral-sh/ruff-pre-commit
10-
rev: v0.14.5
10+
rev: v0.14.6
1111
hooks:
1212
- id: ruff-check
1313
args: [--fix, --exit-non-zero-on-fix]
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)