-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
45 lines (41 loc) · 1.18 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
fail_fast: true
default_install_hook_types: [pre-commit]
default_stages: [pre-commit]
repos:
- repo: https://github.com/crate-ci/typos
rev: v1.28.1
hooks:
- id: typos
- repo: local
hooks:
- id: ensure Swift setup for local development
name: ensure Swift setup for local development
language: system
types: [file, swift]
entry: ./scripts/ios/ensure-is-local.sh
pass_filenames: false
- id: fmt
name: fmt
language: system
types: [file, rust]
entry: cargo fmt -- --check
pass_filenames: false
- id: SwiftFormat
name: SwiftFormat
language: system
types: [file, swift]
entry: swiftformat .
pass_filenames: false
- id: clippy
name: clippy
language: system
types: [file, rust]
entry: cargo clippy --all -- -D warnings # Use -D warnings option to ensure the job fails when encountering warnings
pass_filenames: false
- id: unit tests
stages: [pre-push]
name: unit tests
language: system
types: [file, rust]
entry: cargo test --lib
pass_filenames: false