-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
57 lines (50 loc) · 1.47 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# .pre-commit-config.yaml
# see pyproject.toml for tool-specific configs
default_install_hook_types: [pre-commit, commit-msg]
repos:
# misc pre-commit helpers
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-added-large-files
args:
- --maxkb=500
- id: check-toml
- id: check-yaml
args:
- --unsafe # Instead of loading the files, simply parse them for syntax
- id: end-of-file-fixer # Makes sure files end in a newline and only a newline
- id: trailing-whitespace # Trims trailing whitespace
# ruff
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.2
hooks:
- id: ruff-format
- id: ruff
# mypy
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.1
hooks:
- id: mypy
additional_dependencies: ['pydantic', 'types-requests']
# sqlfluff
- repo: https://github.com/sqlfluff/sqlfluff
rev: 3.1.1
hooks:
- id: sqlfluff-fix
- id: sqlfluff-lint
# uv
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.3.2
hooks:
- id: uv-lock
args:
- --locked # Requires that the lockfile is up-to-date. If the lockfile is missing or needs to be updated, uv will exit with an error.
# commitlint
# (configuration in commitlint.config.js)
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.16.0
hooks:
- id: commitlint
additional_dependencies: ['@commitlint/config-conventional']
stages: [commit-msg]