Skip to content

Commit

Permalink
Merge pull request #4289 from ynput/enhancement/add-pre-commit-hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
antirotor committed Jan 11, 2023
2 parents d0264e9 + bca9eb2 commit 7418da2
Show file tree
Hide file tree
Showing 5 changed files with 1,913 additions and 1,659 deletions.
16 changes: 16 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# 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: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: no-commit-to-branch
args: [ '--pattern', '^(?!((enhancement|feature|bugfix|documentation|tests|local|chore)\/[a-zA-Z0-9\-]+)$).*' ]
- repo: https://github.com/psf/black
rev: 22.12.0
hooks:
- id: black
Loading

0 comments on commit 7418da2

Please sign in to comment.