summaryrefslogtreecommitdiffstats
path: root/.pre-commit-config.yaml
blob: 525c7eb84ddbc4d21deaf329cc8c98ac313c8773 (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
hooks:
  - &base
    language: python
    types: [python]
    require_serial: true
    exclude: ^migrations/versions
  - &flake8
    id: flake8
    name: flake8
    entry: flake8
    <<: *base
  - &isort
    id: isort
    name: isort
    entry: isort
    <<: *base

repos:
  - repo: local
    hooks:
      - <<: *flake8
      - <<: *isort
        args: ['--check-only', '--diff']