Skip to content
Snippets Groups Projects
.pre-commit-config.yaml 801 B
Newer Older
  • Learn to ignore specific revisions
  • repos:
      - repo: https://github.com/astral-sh/ruff-pre-commit
        rev: v0.0.280
        hooks:
          - id: ruff
            args: [--fix, --exit-non-zero-on-fix]
      - repo: https://github.com/psf/black
        rev: 23.7.0
        hooks:
          - id: black
            # It is recommended to specify the latest version of Python
            # supported by your project here, or alternatively use
            # pre-commit's default_language_version, see
            # https://pre-commit.com/#top_level-default_language_version
            language_version: python3.11
      - repo: https://github.com/rtts/djhtml
        rev: "3.0.6"
        hooks:
          - id: djhtml
            files: .*/templates/.*\.html$
      - repo: https://github.com/pre-commit/mirrors-prettier
        rev: v3.0.0 # Use the sha or tag you want to point at
        hooks:
          - id: prettier