-
Notifications
You must be signed in to change notification settings - Fork 6
/
.pre-commit-config.yaml
61 lines (60 loc) · 1.62 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
58
59
60
61
ci:
skip: [pip-compile]
repos:
# General
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-xml
- id: debug-statements
- id: end-of-file-fixer
- id: name-tests-test
- id: trailing-whitespace
# Python
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.2
hooks:
- id: mypy
args:
- "--check-untyped-defs"
- "--ignore-missing-imports"
additional_dependencies:
- PyGObject-stubs
- name-that-hash
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.4
hooks:
- id: ruff
args: [ --fix ]
- id: ruff-format
# Prettier
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
types_or: [markdown, css]
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.14.0
hooks:
- id: pretty-format-ini
# PIP requirements
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.4.8
hooks:
- id: pip-compile
name: pip-compile requirements.in
args:
- --generate-hashes
- requirements/requirements.in
- -o
- requirements/requirements.txt
files: ^requirements/requirements.in$
- id: pip-compile
name: pip-compile requirements-dev.in
args:
- --generate-hashes
- requirements/requirements-dev.in
- -o
- requirements/requirements-dev.txt
files: ^requirements/requirements-dev.in$