Skip to content

Commit e683dd7

Browse files
committed
🔧 config(pre-commit): add 'uv-export' pre-commit to the template and bump all pre-commit versions
1 parent 505ea9b commit e683dd7

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

‎template/.pre-commit-config.yaml.jinja‎

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ default_stages:
1313

1414
repos:
1515
- repo: https://github.com/pre-commit/pre-commit-hooks
16-
rev: "v5.0.0"
16+
rev: "v6.0.0"
1717
hooks:
1818
- id: check-case-conflict
1919
- id: check-merge-conflict
@@ -39,7 +39,7 @@ repos:
3939

4040
{% if with_conventional_commits -%}
4141
- repo: https://github.com/commitizen-tools/commitizen
42-
rev: v4.5.1
42+
rev: v4.9.1
4343
hooks:
4444
- id: commitizen
4545
{%- if cz_gitmoji %}
@@ -56,14 +56,14 @@ repos:
5656
{%- endif %}
5757

5858
- repo: https://github.com/astral-sh/ruff-pre-commit
59-
rev: "v0.11.5"
59+
rev: "v0.14.0"
6060
hooks:
6161
- id: ruff
6262
args: [--exit-non-zero-on-fix]
6363
- id: ruff-format
6464

6565
- repo: https://github.com/astral-sh/uv-pre-commit
66-
rev: 0.6.14
66+
rev: 0.9.0
6767
hooks:
6868
- id: uv-sync
6969
args: ["--locked"]
@@ -74,6 +74,14 @@ repos:
7474
{%- if with_conventional_commits %}
7575
- pre-push
7676
{%- endif %}
77+
- id: uv-export
78+
stages:
79+
- post-checkout
80+
- post-merge
81+
- post-rewrite
82+
{%- if with_conventional_commits %}
83+
- pre-push
84+
{%- endif %}
7785

7886
- repo: local
7987
hooks:

0 commit comments

Comments
 (0)