Skip to content

Commit ae86e6c

Browse files
committed
Replace pre-commit with prek
1 parent 6f5a1b1 commit ae86e6c

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

.pre-commit-config.yaml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@ repos:
1717
priority: 0
1818
- id: end-of-file-fixer
1919
types: [python]
20-
- id: fix-byte-order-marker
2120
priority: 1
21+
- id: fix-byte-order-marker
22+
priority: 2
2223
- id: mixed-line-ending
2324
args: [--fix=lf]
2425
types: [python]
25-
priority: 2
26-
- id: trailing-whitespace
2726
priority: 3
27+
- id: trailing-whitespace
28+
priority: 4
2829

2930
- repo: https://github.com/pre-commit/pygrep-hooks
3031
rev: v1.10.0
@@ -49,20 +50,20 @@ repos:
4950
priority: 0
5051
- id: remove-tabs
5152
args: [--whitespaces-count, '2']
52-
priority: 4
53+
priority: 5
5354
- id: chmod
5455
args: ['644']
5556
exclude_types: [shell]
5657
exclude: ^(.*__main__\.py|syncmaster/server/scripts/.*\.py|docker/.*\.py|tests/resources/file_df_connection/generate.*.py)$
57-
priority: 5
58+
priority: 6
5859
- id: chmod
5960
args: ['755']
6061
types: [shell]
61-
priority: 5
62+
priority: 6
6263
- id: chmod
6364
args: ['755']
6465
files: ^(.*__main__\.py|syncmaster/server/scripts/.*\.py|docker/.*\.py|tests/resources/file_df_connection/generate.*.py)$
65-
priority: 5
66+
priority: 6
6667
- id: insert-license
6768
types: [python]
6869
exclude: ^(syncmaster/server/dependencies/stub.py|docs/.*\.py|tests/.*\.py)$
@@ -71,16 +72,16 @@ repos:
7172
- .spdx-license-header.txt
7273
- --allow-past-years
7374
- --no-extra-eol
74-
priority: 6
75+
priority: 7
7576

7677
- repo: https://github.com/astral-sh/ruff-pre-commit
7778
rev: v0.14.10
7879
hooks:
7980
- id: ruff-format
80-
priority: 7
81+
priority: 8
8182
- id: ruff-check
8283
args: [--fix]
83-
priority: 8
84+
priority: 9
8485

8586
- repo: local
8687
hooks:
@@ -90,7 +91,7 @@ repos:
9091
language: python
9192
require_serial: true
9293
pass_filenames: false
93-
priority: 9
94+
priority: 10
9495

9596

9697
- repo: https://github.com/IamTheFij/docker-pre-commit
@@ -104,13 +105,13 @@ repos:
104105
hooks:
105106
- id: pretty-format-yaml
106107
args: [--autofix, --indent, '2', --offset, '2']
107-
priority: 5
108+
priority: 8
108109

109110
- repo: https://github.com/astral-sh/uv-pre-commit
110111
rev: 0.9.18
111112
hooks:
112113
- id: uv-lock
113-
priority: 5
114+
priority: 8
114115

115116
- repo: meta
116117
hooks:

CONTRIBUTING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Enable pre-commit hooks
7474
`pre-commit <https://pre-commit.com/>`_ hooks allows to validate & fix repository content before making new commit.
7575
It allows to run linters, formatters, fix file permissions and so on. If something is wrong, changes cannot be committed.
7676

77-
Firstly, install `prek <https://prek.j178.dev/>`_ hooks:
77+
Firstly, install `prek <https://prek.j178.dev/>`_:
7878

7979
.. code:: bash
8080

0 commit comments

Comments
 (0)