Skip to content
Snippets Groups Projects
.pre-commit-config.yaml 1.18 KiB
Newer Older
Yoann Schneider's avatar
Yoann Schneider committed
repos:
  - repo: https://github.com/PyCQA/isort
    rev: 5.12.0
    hooks:
      - id: isort
  - repo: https://github.com/psf/black-pre-commit-mirror
    rev: 23.11.0
Yoann Schneider's avatar
Yoann Schneider committed
    hooks:
    - id: black
  - repo: https://github.com/pycqa/flake8
Yoann Schneider's avatar
Yoann Schneider committed
    hooks:
      - id: flake8
        additional_dependencies:
          - 'flake8-coding==1.3.2'
          - 'flake8-debugger==4.1.2'
  - repo: https://github.com/pre-commit/pre-commit-hooks
Yoann Schneider's avatar
Yoann Schneider committed
    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
    hooks:
      - id: codespell
        args: ['--write-changes']
  - repo: meta
    hooks:
      - id: check-useless-excludes
  - repo: https://github.com/shellcheck-py/shellcheck-py
    rev: v0.10.0.1
    hooks:
      - id: shellcheck