Skip to content

Commit bc50a32

Browse files
sync: update from python-copier-template
1 parent 9892a51 commit bc50a32

3 files changed

Lines changed: 83 additions & 74 deletions

File tree

.pre-commit-config.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ repos:
2727
hooks:
2828
- id: python-use-type-annotations
2929
- repo: https://github.com/astral-sh/ruff-pre-commit
30-
rev: v0.12.4
30+
rev: v0.15.10
3131
hooks:
3232
- id: ruff-check
3333
types_or: [python, pyi, jupyter]
@@ -49,6 +49,12 @@ repos:
4949
rev: 0.10.12
5050
hooks:
5151
- id: uv-lock
52+
# Auto-syncs rev pins in this file with versions resolved in uv.lock.
53+
# Placed after uv-lock so it sees a current lockfile.
54+
- repo: https://github.com/tsvikas/sync-with-uv
55+
rev: v0.5.0
56+
hooks:
57+
- id: sync-with-uv
5258
- repo: local
5359
hooks:
5460
- id: local-ty

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Tools:
2727
- [pytest](https://docs.pytest.org/en/): run unit tests
2828
- [ty](https://github.com/astral-sh/ty): type check Python code
2929
- [prek](https://github.com/j178/prek): manage pre-commit hooks (fast, Rust-based)
30+
- [sync-with-uv](https://github.com/tsvikas/sync-with-uv): keep pre-commit hook `rev` pins in sync with `uv.lock`
3031
- [prettier](https://prettier.io/): format YAML and Markdown
3132
- [codespell](https://github.com/codespell-project/codespell): check spelling in source code
3233

0 commit comments

Comments
 (0)