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: v4.8.2 hooks: - id: commitizen - repo: https://github.com/pre-commit/pre-commit-hooks rev: v5.0.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: v9.0.1 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: https://github.com/prettier/pre-commit rev: main hooks: - id: prettier additional_dependencies: - prettier@3.5.3 - repo: local hooks: - id: install-frontend name: Install frontend entry: npm install language: system always_run: false pass_filenames: false stages: [pre-commit, pre-merge-commit, pre-push, manual] - id: eslint name: eslint entry: npm run lint language: system always_run: false pass_filenames: false verbose: true stages: [pre-commit, pre-merge-commit, pre-push, manual] - id: build-frontend name: Build frontend entry: npm run build language: system always_run: false pass_filenames: false verbose: true stages: [pre-commit, pre-merge-commit, pre-push, manual]