diff --git a/.gitignore b/.gitignore index 2e5485d37..a0cfbd882 100644 --- a/.gitignore +++ b/.gitignore @@ -14,6 +14,7 @@ native/src/gsl/ dotnet/nuget/*.nuspec !dotnet/nuget/*.nuspec.in dotnet/nuget/SEALNet.targets +env *.pc .config diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 000000000..4d5d8ad81 --- /dev/null +++ b/.pre-commit-config.yaml @@ -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"]