janw/podcast-archiver

View on GitHub
.pre-commit-config.yaml

Summary

Maintainability
Test Coverage
repos:
  - repo: meta
    hooks:
      - id: check-hooks-apply

  - repo: https://github.com/janw/pre-commit-hooks
    rev: v0.1.0
    hooks:
      - id: sync_ruff_version

  - repo: https://github.com/astral-sh/ruff-pre-commit
    rev: 'v0.6.8'
    hooks:
      - id: ruff
        args: [ --fix, --exit-non-zero-on-fix ]
      - id: ruff-format

  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: "v4.6.0"
    hooks:
      - id: trailing-whitespace
        exclude_types: [svg]
      - id: end-of-file-fixer
      - id: check-yaml
      - id: debug-statements
      - id: check-ast

  - repo: https://github.com/python-poetry/poetry
    rev: '1.8.0'
    hooks:
      - id: poetry-lock
        args:
          - --no-update
      - id: poetry-check

  - repo: https://github.com/streetsidesoftware/cspell-cli
    rev: v8.13.3
    hooks:
      - id: cspell

  - repo: local
    hooks:
      - id: mypy
        name: mypy
        entry: poetry run mypy
        language: system
        require_serial: true
        pass_filenames: false
        types: [python]

      - id: rich-codex
        name: rich-codex
        entry: ./hack/rich-codex.sh
        language: system
        require_serial: true
        pass_filenames: false
        types: [python]