Skip to content

Commit 5bc2376

Browse files
authored
Add precommit (#369)
* Add pre-commit configuration * Change prettier version * Try djhtml * Add prettier ignore
1 parent caee19c commit 5bc2376

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.pre-commit-config.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v2.3.0
4+
hooks:
5+
- id: check-yaml
6+
- id: end-of-file-fixer
7+
- id: trailing-whitespace
8+
- repo: https://github.com/psf/black
9+
rev: 22.10.0
10+
hooks:
11+
- id: black
12+
- repo: https://github.com/pre-commit/mirrors-prettier
13+
rev: "v2.7.1"
14+
exclude: .*\.html
15+
hooks:
16+
- id: prettier
17+
- repo: https://github.com/rtts/djhtml
18+
rev: "3.0.6"
19+
hooks:
20+
- id: djhtml
21+
22+
default_language_version:
23+
python: python3.9.7

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.html

0 commit comments

Comments
 (0)