Skip to content

Commit

Permalink
Added .pre-commit-config.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
kimlaine committed Sep 1, 2020
1 parent 2f8be58 commit f023d38
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ native/src/gsl/
dotnet/nuget/*.nuspec
!dotnet/nuget/*.nuspec.in
dotnet/nuget/SEALNet.targets
env

*.pc
.config
Expand Down
20 changes: 20 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
repos:
#- repo: https://github.com/pre-commit/pre-commit-hooks
#rev: v2.0.0
#hooks:
#- id: check-added-large-files
#- id: check-case-conflict
#- id: check-json
#- id: check-merge-conflict
#- id: check-symlinks
#- id: check-yaml
#- id: trailing-whitespace
#- id: end-of-file-fixer
- repo: local
hooks:
- id: clang-format
name: clang-format
entry: clang-format
language: system
files: \.(cpp|h)$
args: ["-i"]

0 comments on commit f023d38

Please sign in to comment.