Skip to content

Commit

Permalink
git: add pre-commit with black and prettier (matching previous behavior)
Browse files Browse the repository at this point in the history
  • Loading branch information
David Hartmann authored and JackUrb committed Dec 2, 2022
1 parent a96a41a commit 7d0fd5b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
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
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.6.2
hooks:
- id: prettier
files: "\\.(\
css\
|js|jsx\
|json\
)$"

0 comments on commit 7d0fd5b

Please sign in to comment.