-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
35 lines (32 loc) · 1.25 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
35 lines (32 loc) · 1.25 KB
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
# Pre-commit configuration for Sir Tips-A-Lot
# Install: pre-commit install
# Run manually: pre-commit run --all-files
repos:
# Local hooks for iOS/Swift project
- repo: local
hooks:
- id: xcode-build
name: Xcode Build
entry: bash -c 'xcodebuild build -project "TipCal/Tip Calculator/Tip Calculator.xcodeproj" -scheme "Tip Calculator" -destination "generic/platform=iOS Simulator" -quiet'
language: system
pass_filenames: false
files: \.(swift|xcodeproj)$
stages: [pre-commit]
- id: xcode-test
name: Xcode Unit Tests
entry: bash -c 'xcodebuild test -project "TipCal/Tip Calculator/Tip Calculator.xcodeproj" -scheme "Tip Calculator" -destination "platform=iOS Simulator,name=iPhone 17 Pro" -quiet'
language: system
pass_filenames: false
files: \.(swift|xcodeproj)$
stages: [pre-commit]
# Standard pre-commit hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
exclude: \.(xcodeproj|xcworkspace|pbxproj)$
- id: end-of-file-fixer
exclude: \.(xcodeproj|xcworkspace|pbxproj)$
- id: check-yaml
- id: check-added-large-files
args: ['--maxkb=10000']