-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
44 lines (38 loc) · 1.1 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
exclude: ".graphql"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 11cdc8d8201091a19ff1c28f7b7c75c3691954ad
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: debug-statements
- id: no-commit-to-branch
- id: check-merge-conflict
- repo: https://github.com/pycqa/bandit
rev: 1.7.0
hooks:
- id: bandit
args: ["-iii", "-ll"]
- repo: https://github.com/4Catalyzer/fourmat
rev: v0.11.1
hooks:
- id: fourmat
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.5.1
hooks:
- id: prettier
- repo: local
hooks:
- id: migrations-check
language: system
name: Check for uncreated migrations.
entry: sh -c "./manage.py makemigrations --check --dry-run"
files: "models\\.py$"
stages: [commit]
- repo: local
hooks:
- id: gql-schema-check
language: system
name: Check GraphQL schema is up to date.
entry: sh -c "./manage.py get_graphql_schema | diff saleor/graphql/schema.graphql -"
stages: [commit]