Skip to content

Commit

Permalink
pre-commit: Install basic pre-commit hooks
Browse files Browse the repository at this point in the history
pre-commit is useful when dealing with source code tidy in an automated
way so this patch adds some basic pre-commit hooks.

  $ pre-commit install
  pre-commit installed at .git/hooks/pre-commit

  $ pre-commit run -a
  Check Yaml...............................................................Passed
  Fix End of Files.........................................................Passed
  Trim Trailing Whitespace.................................................Passed

Signed-off-by: Honggyu Kim <[email protected]>
  • Loading branch information
honggyukim authored and Bojun-Seo committed Mar 13, 2023
1 parent aed5278 commit ef866b5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace

0 comments on commit ef866b5

Please sign in to comment.