Skip to content

Commit

Permalink
Merge pull request #118 from DDMAL/pre-commit
Browse files Browse the repository at this point in the history
ci: init pre-commit hook for code reformatting
  • Loading branch information
yinanazhou authored Jul 17, 2024
2 parents 7bcdeb3 + f81b8d6 commit 8fe2520
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
repos:
- repo: https://github.com/psf/black
rev: 23.1a1
hooks:
- id: black

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.3.2
hooks:
- id: prettier
additional_dependencies: ["prettier@2.3.2"]
files: "\\.(js|jsx|ts|tsx|css|scss|less|json|yaml|yml|md)$"

- repo: https://github.com/djlint/djLint
rev: v1.34.1
hooks:
- id: djlint-reformat-django
- id: djlint-django

0 comments on commit 8fe2520

Please sign in to comment.