Skip to content
Snippets Groups Projects
.pre-commit-config.yaml 1.24 KiB
Newer Older
Mélodie Boillet's avatar
Mélodie Boillet committed
repos:
  - repo: https://github.com/PyCQA/isort
    rev: 5.10.1
    hooks:
      - id: isort
        args: ["--profile", "black"]
  - repo: https://github.com/ambv/black
    rev: 22.10.0
  - repo: https://github.com/pycqa/flake8
    rev: 6.0.0
Mélodie Boillet's avatar
Mélodie Boillet committed
    hooks:
      - id: flake8
        additional_dependencies:
          - 'flake8-coding==1.3.2'
          - 'flake8-debugger==4.1.2'
Mélodie Boillet's avatar
Mélodie Boillet committed
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v4.4.0
Mélodie Boillet's avatar
Mélodie Boillet 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
      - id: end-of-file-fixer
      - id: mixed-line-ending
  - repo: https://github.com/codespell-project/codespell
Mélodie Boillet's avatar
Mélodie Boillet committed
    hooks:
      - id: codespell
        args: ['--write-changes']
  - repo: https://github.com/PyCQA/doc8
    rev: v1.0.0
    hooks:
      - id: doc8
Mélodie Boillet's avatar
Mélodie Boillet committed
  - repo: meta
    hooks:
      - id: check-useless-excludes