Skip to content

Commit e482b44

Browse files
Set up priority config for prek
1 parent bd54adf commit e482b44

4 files changed

Lines changed: 70 additions & 51 deletions

File tree

.pre-commit-config.yaml

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,64 @@
1+
minimum_prek_version: 0.2.23
12
repos:
23
- repo: https://github.com/tsvikas/sync-with-uv
34
rev: v0.4.0
45
hooks:
56
- id: sync-with-uv
7+
priority: 0
68
- repo: https://github.com/astral-sh/uv-pre-commit
79
rev: 0.9.8
810
hooks:
9-
- id: uv-lock
1011
- id: uv-sync
12+
priority: 0
1113
- id: uv-export
14+
priority: 0
1215
- id: uv-export
1316
args: ["--frozen", "--only-group=doc", "--output-file=docs/requirements.txt", "--quiet"]
17+
priority: 0
1418
- repo: https://github.com/pre-commit/pre-commit-hooks
1519
rev: v5.0.0
1620
hooks:
1721
- id: check-added-large-files
22+
priority: 0
1823
- id: check-case-conflict
24+
priority: 0
1925
- id: check-merge-conflict
26+
priority: 0
2027
- id: check-symlinks
28+
priority: 0
2129
- id: check-yaml
30+
priority: 0
2231
- id: debug-statements
32+
priority: 0
2333
- id: name-tests-test
2434
args: [--pytest-test-first]
35+
priority: 0
2536
- repo: https://github.com/abravalheri/validate-pyproject
2637
rev: v0.23
2738
hooks:
2839
- id: validate-pyproject
40+
priority: 0
2941
- repo: https://github.com/tox-dev/pyproject-fmt
3042
rev: v2.5.0
3143
hooks:
3244
- id: pyproject-fmt
3345
args: [--max-supported-python=3.14]
46+
priority: 0
3447
- repo: https://github.com/astral-sh/ruff-pre-commit
3548
rev: v0.14.3
3649
hooks:
3750
- id: ruff-check
3851
args: [--fix]
52+
priority: 0
3953
- id: ruff-format
54+
priority: 0
55+
- repo: https://github.com/codespell-project/codespell
56+
rev: v2.4.1
57+
hooks:
58+
- id: codespell
59+
additional_dependencies:
60+
- tomli
61+
priority: 0
4062
- repo: local
4163
hooks:
4264
- id: deptry
@@ -45,12 +67,7 @@ repos:
4567
language: system
4668
always_run: true
4769
pass_filenames: false
48-
- repo: https://github.com/codespell-project/codespell
49-
rev: v2.4.1
50-
hooks:
51-
- id: codespell
52-
additional_dependencies:
53-
- tomli
70+
priority: 1
5471
- repo: local
5572
hooks:
5673
- id: import-linter
@@ -59,6 +76,7 @@ repos:
5976
language: system
6077
always_run: true
6178
pass_filenames: false
79+
priority: 1
6280
- repo: local
6381
hooks:
6482
- id: ty
@@ -68,6 +86,7 @@ repos:
6886
types_or: [python, pyi]
6987
always_run: true
7088
require_serial: true
89+
priority: 1
7190
default_stages:
7291
- pre-commit
7392
- pre-push

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ dev = [
5858
"deptry>=0.23.0",
5959
"import-linter>=2.3",
6060
"jinja2>=3.1.6",
61-
"prek>=0.2.4",
61+
"prek>=0.2.23",
6262
"pyinstrument>=5.1.1",
6363
"pyright[nodejs]>=1.1.399",
6464
"ruff>=0.14.3",

requirements.txt

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -567,26 +567,26 @@ pluggy==1.6.0 \
567567
--hash=sha256:7dcc130b76258d33b90f61b658791dede3486c3e6bfb003ee5c9bfb396dd22f3 \
568568
--hash=sha256:e920276dd6813095e9377c0bc5566d94c932c33b27a3e3945d8389c374dd4746
569569
# via pytest
570-
prek==0.2.13 \
571-
--hash=sha256:06dc43f2d7219f2bad2c01085ad444de517b5d28e5ef361274ff39a46b68f2cc \
572-
--hash=sha256:0f5eac126203c89e38062e665f1427207dece178f9e19bacbc37056ab8504148 \
573-
--hash=sha256:6b3b0e07a2da4e67e7110399b5dbd8d9205df8ff39fbe80bd37ffa194c639990 \
574-
--hash=sha256:75fe11e6689431b5a3f818276dfbcbb3502cd2a4b07a3efaf3460204adaa9a89 \
575-
--hash=sha256:82555ede81a7ca058ffe450e0cf7aab85db2063aeeb00d4b1704b32ccb3a4e23 \
576-
--hash=sha256:8a869f9c98da675efc947e0aa4c7a8d8434d57fa5bad20e27e54855160771053 \
577-
--hash=sha256:8ae60b5d753272c1051667a257cbb13cfb197ef32900aee4cefa98352d5e7576 \
578-
--hash=sha256:8cea9a0a46fc5e62ebf4cde1e700993737b6828228cf60f1ccfa1c91092e7e7f \
579-
--hash=sha256:9f55198e4b0f08c544e790184898459973755d5b83eb21e3527d789f3fc6855e \
580-
--hash=sha256:a72f909dd737aeda07d3768aab39d8ed2574ddf05842b8a324434810d2e7160f \
581-
--hash=sha256:a8724e40242a4ad3cb3f14d17764c287d9b0a5ea61ac91a861e5a676bfe21c99 \
582-
--hash=sha256:b7d0c1b1d6e315dd51cdb4e68957d5ef38a67e2c5f0dab53168cb6e842539bbf \
583-
--hash=sha256:beb5cffb1575b645022305a601bdd395b5b005c42368fedb34bfc6aebed24b36 \
584-
--hash=sha256:dd5e0ddc4e4c72633ee7d400c3be7df53b7bb0e61ba7c9ea4cb490d476824f79 \
585-
--hash=sha256:dde77f9ee904df60fa9cecfbfde04257d26c3f5d0c5ee55211738b3990ff740f \
586-
--hash=sha256:e206979c3d1834fc1683c79e8c72b7e18be3923ca5695de0642d0c9d23e2010a \
587-
--hash=sha256:e7cb2a54d55c35b57548fc1cb74fb66126ed1437a06a33416c6484e0eb4dd80e \
588-
--hash=sha256:eca64c201938cd71ca09eec9b3e31ad031a251f4aa22a5132eb1c1640d86114f \
589-
--hash=sha256:fa3667c641b77c9cb100d428e615f69cf45018615af32b8c63bb4fa2cbbb8769
570+
prek==0.2.25 \
571+
--hash=sha256:0e74c8ebc4cc07000b588b05df22086e3ef5ce9843c7332b9cf52bdb734378b8 \
572+
--hash=sha256:0ec0d67d1df64b34f071acee7bb1507d062f0231049c0b6587ec60f3bc761ee6 \
573+
--hash=sha256:2cdedc528e935f01b97a7459b68b4f7584f8efcfc1b69d271a2a1bc3d6a60d36 \
574+
--hash=sha256:35b3d8543969a03775f5963b8f6e957e9eb23bf191c76d47238557308e7b6bf6 \
575+
--hash=sha256:3d0b9d5fb93cb679ef486f8e6c7ec091723d610d48a5430ef5ece22d649ae686 \
576+
--hash=sha256:401d33d1f54f62489b95e7aaacb9cdecac2ab61fe0bd607c8a6c11963e6ad2b9 \
577+
--hash=sha256:4073a368e949a117d77fcdbce13ff14a001b71e797fa35ec921892714bcfb389 \
578+
--hash=sha256:442994797aee8a1563f7236b54bb1d99578143b30cc4559011d59a112cdf43f3 \
579+
--hash=sha256:470373eba87baffe68bbbe18a4c4a85acba2709a8e834adad0c6147977ccdfb3 \
580+
--hash=sha256:57db60d6e7882e1b0d6b0a2e6e4b8c240977b9309b4be0793b2d7151021f3767 \
581+
--hash=sha256:68458ec5d8cadb18667d5126b6a98c0fd2214b624805935c90213d9205378dc8 \
582+
--hash=sha256:6da53de6119ec176673c4e3843abe4b6cc7190adc005564ad9e2d8b2924b3934 \
583+
--hash=sha256:7809d7f6119be8870a2a76c15d28a122efb1f356909f355461b856619f7456fb \
584+
--hash=sha256:7b8fa764a3665ab38884e2c909f3297e5c29137cafc9c409c1eaab734d7eefcd \
585+
--hash=sha256:9f50ae59fd33a45a58af0197a91c9a207a7f8f49e18e24ca6ca3f5d5cf88a4ac \
586+
--hash=sha256:a85edf16c9a8aca13842c365be62911fbca38cd27ea7c9c54b6d3168a5b21703 \
587+
--hash=sha256:b2692991046cb32f0ef7e02e49842858c87e915cf811aa3c0f473b2c073d9c67 \
588+
--hash=sha256:c6ca24d8ab728f0d5b116576114df1c679bed59501c1ab71d9f2c78230f6b38c \
589+
--hash=sha256:fbcdeb1d847a0e7ba6a250d4f71be2eb1773d54dd9bb14e35584b69a8d3ffce6
590590
pycparser==2.22 \
591591
--hash=sha256:491c8be9c040f5390f5bf44a5b07752bd07f56edf992381b05c701439eec10f6 \
592592
--hash=sha256:c3702b6d3dd8c7abc1afa565d7e63d53a1d0bd86cdc24edd75470f4de499cfcc

uv.lock

Lines changed: 23 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)