Skip to content

Commit

Permalink
common: add default pre-commit configuration
Browse files Browse the repository at this point in the history
A simple pre-commit configuration file that enables usage of
pre-commit hook.
https://pre-commit.com/index.html

Signed-off-by: Tomasz Gromadzki <tomasz.gromadzki@intel.com>
  • Loading branch information
grom72 committed Mar 25, 2024
1 parent 457c61d commit 5820200
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
!.clang-format
!.mailmap
!.codecov.yml
!.pre-commit-config.yaml

*~
*.swp
Expand Down
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files

0 comments on commit 5820200

Please sign in to comment.