Skip to content

Commit

Permalink
Add hook config
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasssvaz committed Jan 22, 2024
1 parent c69ca14 commit c6c5a81
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: detect-private-key
- id: destroyed-symlinks
- id: mixed-line-ending
args: [--fix=lf]
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: 'v15.0.7'
hooks:
- id: clang-format
types_or: [c++, c]

0 comments on commit c6c5a81

Please sign in to comment.