Skip to content

Commit

Permalink
Add pre-commit hooks: black, trailing whitespace, eof, check-yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
nikochiko committed Nov 9, 2023
1 parent eaec380 commit 31c6271
Show file tree
Hide file tree
Showing 3 changed files with 134 additions and 1 deletion.
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: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- repo: local
hooks:
- id: black
name: black
entry: poetry run black
language: system
types: [python]
Loading

0 comments on commit 31c6271

Please sign in to comment.