summaryrefslogtreecommitdiff
path: root/.pre-commit-config.yaml
blob: 4870756fd54a3c1e61cac21e8ed6de71d18d0741 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: master
    hooks:
      - id: trailing-whitespace
        args: [--markdown-linebreak-ext=md]
      - id: name-tests-test
        args: ['--django']
      - id: end-of-file-fixer

  - repo: https://github.com/asottile/reorder_python_imports
    rev: master
    hooks:
      - id: reorder-python-imports

  - repo: https://gitlab.com/pycqa/flake8
    rev: master
    hooks:
      - id: flake8
        additional_dependencies: [flake8-bugbear]

  - repo: https://github.com/ambv/black
    rev: stable
    hooks:
      - id: black
default_language_version:
  python: python3.7