-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
54 lines (49 loc) · 1.64 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-yaml
name: Global | Check Yaml
- id: check-toml
name: Global | Check Toml
- id: end-of-file-fixer
name: Global | End of File Fixer
- id: trailing-whitespace
name: Global | Trailing Whitespace
- id: check-added-large-files
name: Global | Check Added Large Files
- repo: local
hooks:
- id: poetry
name: Api | Installing Project Dependencies via Poetry
entry: poetry -C src/api install --no-root
language: system
require_serial: true
pass_filenames: false
files: '^src/api/'
- id: ruff
name: Api | Run Ruff via Poetry
entry: poetry -C src/api run ruff check --fix --exit-non-zero-on-fix
language: system
require_serial: true
pass_filenames: false
files: '^src/api/'
- id: prisma format
name: Api | Run Prisma Format via Poetry
entry: poetry -C src/api run prisma format --schema=src/api/prisma/schema.prisma
language: system
require_serial: true
files: '^src/api/'
- id: prisma generate
name: Api | Run Prisma Generate via Poetry
entry: poetry -C src/api run prisma generate --schema=src/api/prisma/schema.prisma
language: system
require_serial: true
files: '^src/api/'
- id: pyright
name: Api | Run Pyright via Poetry
entry: poetry -C src/api run pyright
language: system
types: [python]
require_serial: true
files: '^src/api/'