Skip to content
Snippets Groups Projects
.pre-commit-config.yaml 958 B
Newer Older
  - repo: https://github.com/charliermarsh/ruff-pre-commit
    rev: 'v0.0.257'
      - id: ruff
        args: [--fix, --exit-non-zero-on-fix]
  - repo: https://github.com/ambv/black
Yoann Schneider's avatar
Yoann Schneider committed
    rev: 23.1.0
    hooks:
    - id: black
  - repo: https://github.com/pre-commit/pre-commit-hooks
Yoann Schneider's avatar
Yoann Schneider committed
    rev: v4.4.0
    hooks:
      - id: check-ast
      - id: check-docstring-first
      - id: check-executables-have-shebangs
      - id: check-merge-conflict
      - id: check-symlinks
      - id: debug-statements
      - id: trailing-whitespace
      - id: check-yaml
        args: [--allow-multiple-documents]
      - id: mixed-line-ending
      - id: name-tests-test
        args: ['--django']
      - id: check-json
      - id: requirements-txt-fixer
  - repo: https://github.com/codespell-project/codespell
Yoann Schneider's avatar
Yoann Schneider committed
    rev: v2.2.2
    hooks:
      - id: codespell
        args: ['--write-changes']
  - repo: meta
    hooks:
      - id: check-useless-excludes