diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cb4ff1a11..c5f051856 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,6 +17,12 @@ repos: - id: check-docstring-first - 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 rev: v3.3.1 hooks: diff --git a/{{cookiecutter.project_slug}}/.pre-commit-config.yaml b/{{cookiecutter.project_slug}}/.pre-commit-config.yaml index 301f1da0e..a6a67a99e 100644 --- a/{{cookiecutter.project_slug}}/.pre-commit-config.yaml +++ b/{{cookiecutter.project_slug}}/.pre-commit-config.yaml @@ -17,6 +17,13 @@ repos: - id: check-docstring-first - 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 rev: v3.3.1 hooks: