Skip to content

Commit d25a202

Browse files
committed
Include uv lock in release steps
Prior to this, uv.lock would get out of date following a release and it would need to be updated in a follow up commit.
1 parent a87c498 commit d25a202

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

‎CONTRIBUTING.rst‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,11 @@ This is only possible if you're a maintainer.
180180
4. Update the ``release`` variable in ``docs/conf.py`` with the new version number.
181181
5. Update the ``__version__`` variable in ``src/grimp/__init__.py`` with the new version number.
182182
6. Update ``project.version`` in ``pyproject.toml`` with the new version number.
183-
7. ``git commit -am "Release v{new version number"``
184-
8. ``git push``
185-
9. Wait for tests to pass on CI.
186-
10. ``git tag v{new version number}``
187-
11. ``git push --tags``
188-
12. This should kick start the Github ``release`` workflow, which builds wheels and releases the
183+
7. ``uv lock`` to sync ``uv.lock`` with the new version.
184+
8. ``git commit -am "Release v{new version number"``
185+
9. ``git push``
186+
10. Wait for tests to pass on CI.
187+
11. ``git tag v{new version number}``
188+
12. ``git push --tags``
189+
13. This should kick start the Github ``release`` workflow, which builds wheels and releases the
189190
project to PyPI.

‎justfile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ format:
7171
# Lint Python code.
7272
[group('linting')]
7373
lint-python:
74+
@echo 'Checking uv.lock is up to date...'
75+
@uv lock --check
7476
@echo 'Running ruff format...'
7577
@uv run ruff format --check
7678
@echo 'Running ruff check...'

0 commit comments

Comments
 (0)