Skip to content

Commit 5dcc4a2

Browse files
committed
ci: Update the pre-commit config.
1 parent ad4b6a0 commit 5dcc4a2

File tree

3 files changed

+29
-6
lines changed

3 files changed

+29
-6
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
_version.py
33
/packages/
44
/.vscode/
5+
/requirements.txt
6+
/.ruff_cache/
57

68
# Byte-compiled / optimized / DLL files
79
__pycache__/

.pre-commit-config.yaml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,36 @@
11
default_install_hook_types: [
2-
pre-commit, pre-merge-commit, pre-push,
3-
post-checkout, post-commit]
4-
default_stages: [pre-commit, pre-merge-commit, pre-push, manual]
2+
pre-commit,
3+
post-checkout, post-merge, post-rewrite, post-commit]
4+
default_stages: [pre-commit, manual]
55
exclude: (^tests/.*/.*$)
66
repos:
77
- repo: https://github.com/pre-commit/pre-commit-hooks
8-
rev: v4.6.0
8+
rev: v5.0.0
99
hooks:
1010
- id: check-yaml
1111
- id: end-of-file-fixer
1212
- id: trailing-whitespace
1313

14+
- repo: https://github.com/astral-sh/uv-pre-commit
15+
rev: 0.8.2
16+
hooks:
17+
- id: uv-sync
18+
stages: [pre-commit, post-checkout, post-merge, post-rewrite, manual]
19+
20+
- repo: https://github.com/astral-sh/uv-pre-commit
21+
rev: 0.8.2
22+
hooks:
23+
- id: uv-lock
24+
- id: uv-export
25+
1426
- repo: local
1527
hooks:
1628
- id: static-checks
1729
name: static-checks
30+
stages: [pre-commit, pre-push, manual]
1831
description: >-
1932
This hook runs all static checks, including mypy, and ruff.
2033
It is recommended to run this on pre-commit and pre-push.
21-
Will also sync and update the uv.lock file before commit.
2234
always_run: true
2335
language: python
2436
entry: uv run tox -m static
@@ -28,7 +40,7 @@ repos:
2840
description: >-
2941
This hook uses the hatch-vcs module to update the `_version.py` file.
3042
Call this on post-commit and post-checkout.
31-
stages: [post-commit, post-checkout, manual]
43+
stages: [post-commit, post-checkout, post-merge, post-rewrite, manual]
3244
always_run: true
3345
language: python
3446
pass_filenames: false

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Changelog
22

3+
## What's Changed ([unreleased])
4+
5+
- ci: Add support for `git-cliff` to manage changelog.- ([c3386cf])
6+
- Fix CI status links in README for new CI workflow.- ([ad4b6a0])
7+
8+
[unreleased]: https://github.com/glenn20/mpremote-path/compare/v0.1.8..HEAD
9+
[c3386cf]: https://github.com/glenn20/mpremote-path/commit/c3386cf5c2e118d0104b836a44c42eea131ccea4
10+
[ad4b6a0]: https://github.com/glenn20/mpremote-path/commit/ad4b6a0d573bf7c7b3f3b29b287e942afaa37f52
11+
312
## What's Changed in [v0.1.8]
413

514
- Refactor github CI workflows- ([a7c4655])

0 commit comments

Comments
 (0)