default_language_version: python: python3.11 repos: - repo: https://github.com/commitizen-tools/commitizen # Please run `pre-commit install --hook-type commit-msg` to check commit messages rev: v3.29.1 hooks: - id: commitizen - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.6.0 hooks: - id: check-yaml - id: end-of-file-fixer - id: trailing-whitespace - id: check-case-conflict - id: check-ast - id: check-added-large-files args: ["--maxkb=1000"] - repo: https://github.com/streetsidesoftware/cspell-cli.git rev: v8.13.3 hooks: - id: cspell name: cspell additional_dependencies: - "@cspell/dict-de-ch" - "@cspell/dict-en-gb" args: - "lint" - "--show-suggestions" - "--no-must-find-files" - "--locale" - "en-GB,de-CH" - repo: local hooks: - id: install-frontend name: Install frontend entry: npm install language: system always_run: false pass_filenames: false stages: [commit, merge-commit, push, manual] - id: eslint name: eslint entry: npm run lint language: system always_run: false pass_filenames: false verbose: true stages: [commit, merge-commit, push, manual] - id: build-frontend name: Build frontend entry: npm run build language: system always_run: false pass_filenames: false verbose: true stages: [commit, merge-commit, push, manual]