diff --git a/{{cookiecutter.project_slug}}/.pre-commit-config.yaml b/{{cookiecutter.project_slug}}/.pre-commit-config.yaml index f16a87fd2..d13ec8379 100644 --- a/{{cookiecutter.project_slug}}/.pre-commit-config.yaml +++ b/{{cookiecutter.project_slug}}/.pre-commit-config.yaml @@ -16,14 +16,14 @@ repos: - id: check-case-conflict - id: check-docstring-first - id: detect-private-key - +{%- if cookiecutter.frontend_pipeline != "Webpack" or cookiecutter.frontend_pipeline != "Gulp" or cookiecutter.use_pycharm %} - repo: https://github.com/pre-commit/mirrors-prettier rev: v3.0.0-alpha.9-for-vscode hooks: - id: prettier args: ['--tab-width', '2', '--single-quote'] exclude: '{{cookiecutter.project_slug}}/templates/' - +{% endif -%} - repo: https://github.com/adamchainz/django-upgrade rev: '1.14.0' hooks: