generated from andrelouw/app-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
42 lines (42 loc) · 1.19 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
stages: [pre-commit]
- id: end-of-file-fixer
stages: [pre-commit]
- id: trailing-whitespace
stages: [pre-commit]
- id: check-added-large-files
stages: [pre-commit]
- id: check-json
stages: [pre-commit]
- id: check-merge-conflict
stages: [pre-commit]
- repo: https://github.com/realm/SwiftLint
rev: 0.52.2
hooks:
- id: swiftlint
entry: swiftlint --fix --format --progress --config .swiftlint.yml
stages: [pre-commit]
- repo: https://github.com/nicklockwood/SwiftFormat/
rev: 0.51.10
hooks:
- id: swiftformat
entry: swiftformat --config $DIR/../.swiftformat
stages: [pre-commit]
- repo: local
hooks:
- id: build
name: Build project
language: system
entry: make build
stages: [pre-push]
require_serial: true
- id: test-ios
name: Local iOS Tests
language: system
entry: make test_local
stages: [ pre-push ]
require_serial: true