-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
79 lines (70 loc) · 2.01 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: fix-byte-order-marker
- id: check-case-conflict
- id: check-json
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending
- id: check-ast
- id: debug-statements
- id: check-added-large-files
- repo: https://github.com/python-poetry/poetry
rev: "1.5.0" # add version here
hooks:
- id: poetry-check
- id: poetry-lock
- repo: local
hooks:
- id: pnpm-check
name: pnpm-check
language: system
entry: bash -c 'pnpm doctor'
- id: pnpm-lock
name: pnpm-lock
language: system
entry: bash -c 'pnpm install --lockfile-only'
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0 # Use the version of Prettier you prefer
hooks:
- id: prettier
- repo: local
hooks:
- id: add-dot-to-requirements.txt
name: add-dot-to-requirements
entry: bash -c '[ -f ./requirements.txt ] && [ "$(tail -c 1 ./requirements.txt)" = "." ] && echo "." >> ./requirements.txt || exit 0'
language: system
types:
- text
pass_filenames: false
- id: lint-staged
name: lint-staged
entry: bash -c 'pnpm lint-staged'
language: system
pass_filenames: true
# - repo: https://github.com/astral-sh/ruff-pre-commit
# rev: v0.0.280
# hooks:
# - id: ruff
#
# - repo: https://github.com/asottile/seed-isort-config
# rev: v2.2.0
# hooks:
# - id: seed-isort-config # check imports integrity
# - repo: https://github.com/pre-commit/mirrors-isort
# rev: v5.10.1
# hooks:
# - id: isort
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v0.971
# hooks:
# - id: mypy
# args: [--ignore-missing-imports]