From fb9e4a1fb255edd2851e63c8b817a7b6c5e6065a Mon Sep 17 00:00:00 2001 From: Niall Byrne <9848926+niall-byrne@users.noreply.github.com> Date: Sat, 27 Jul 2024 15:05:05 -0400 Subject: [PATCH] feat(EXPERIMENTAL): enable pre-commit hooks --- .../.pre-commit-config.yaml | 25 ++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/{{cookiecutter.project_slug}}/.pre-commit-config.yaml b/{{cookiecutter.project_slug}}/.pre-commit-config.yaml index 74bcfbcd..80ff4f2b 100644 --- a/{{cookiecutter.project_slug}}/.pre-commit-config.yaml +++ b/{{cookiecutter.project_slug}}/.pre-commit-config.yaml @@ -19,7 +19,7 @@ repos: - id: commitizen stages: [commit-msg] - repo: https://github.com/cicd-tools-org/pre-commit.git - rev: c58cb72acbf89070f7496957599e79ce17afe9f8 + rev: d1beab76aee01c287e4b7fc98d220e68e7e64c67 hooks: - id: format-shell args: @@ -30,6 +30,29 @@ repos: {%- if cookiecutter.optional_toml_linting == 'true' %} - id: format-toml {%- endif %} + - id: gettext-translations-add + args: + - "-p" + - "python/locales" + - id: gettext-translations-compile + args: + - "-p" + - "python/locales" + - id: gettext-translations-missing + args: + - "-p" + - "python/locales" + - "-s" + - "en" + - id: gettext-translations-update + args: + - "-p" + - "python/locales" + - "-c" + - "python" + - "-e" + - "niall@niallbyrne.ca" + - "-u" - id: git-conflict-markers {%- if cookiecutter.optional_workflow_linting == 'true' %} - id: lint-github-workflow-header