Add pre-commit hook for prettier

This commit is contained in:
Bruno Alla 2023-04-05 19:59:44 +01:00
parent 538b3853d8
commit 6832bffef5
No known key found for this signature in database
2 changed files with 13 additions and 0 deletions

View File

@ -17,6 +17,12 @@ repos:
- id: check-docstring-first - id: check-docstring-first
- id: detect-private-key - id: detect-private-key
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.0.0-alpha.6"
hooks:
- id: prettier
args: ["--tab-width", "2"]
- repo: https://github.com/asottile/pyupgrade - repo: https://github.com/asottile/pyupgrade
rev: v3.3.1 rev: v3.3.1
hooks: hooks:

View File

@ -17,6 +17,13 @@ repos:
- id: check-docstring-first - id: check-docstring-first
- id: detect-private-key - id: detect-private-key
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.6
hooks:
- id: prettier
args: ['--tab-width', '2', '--single-quote']
exclude: {{cookiecutter.project_slug}}/templates/
- repo: https://github.com/asottile/pyupgrade - repo: https://github.com/asottile/pyupgrade
rev: v3.3.1 rev: v3.3.1
hooks: hooks: