-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.pre-commit-config.yaml
41 lines (38 loc) · 1.18 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
args: [ --markdown-linebreak-ext=md ]
- id: end-of-file-fixer
- id: check-yaml
exclude: mkdocs.yml
- id: check-toml
- id: check-added-large-files
- id: check-case-conflict
- id: mixed-line-ending
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.6.3
hooks:
- id: ruff
args: [ --fix, --unsafe-fixes, --exit-non-zero-on-fix ]
- id: ruff-format
- repo: https://github.com/astral-sh/uv-pre-commit
# uv version.
rev: 0.4.3
hooks:
# Run the pip compile
- id: pip-compile
name: pip-compile requirements.in
args: [ pyproject.toml, -U, -o, requirements.txt ]
files: requirements/requirements.in
# - repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
# rev: v9.17.0
# hooks:
# - id: commitlint
# stages: [ commit-msg ]
# additional_dependencies:
# - 'commitlint-config-gitmoji'