- repo: local
  hooks:
  - id: autoflake
    name: autoflake
    entry: autoflake
    args:
    - "--in-place"
    - "--remove-all-unused-imports"
    - "--remove-unused-variables"
    - "--remove-duplicate-keys"
    - "--expand-star-imports"
    language: system
    types: [python]
    exclude: "karrot\/.*\/migrations"
  - id: yapf
    name: yapf
    entry: yapf
    args:
    - "--in-place"
    language: system
    types: [python]
    exclude: "karrot\/.*\/migrations"
  - id: flake8
    name: flake8
    entry: flake8
    language: system
    types: [python]
  - id: makemessages
    name: makemessages
    entry: python manage.py makemessages
    language: system
    types: [python]
    stages: [push]
    require_serial: true
    pass_filenames: false

repos:
- repo: local
  hooks:
  - id: autoflake
    name: autoflake
    entry: autoflake
    args:
    - "--in-place"
    - "--remove-all-unused-imports"
    - "--remove-unused-variables"
    - "--remove-duplicate-keys"
    - "--expand-star-imports"
    language: system
    types: [python]
    exclude: "karrot\/.*\/migrations"
  - id: yapf
    name: yapf
    entry: yapf
    args:
    - "--in-place"
    language: system
    types: [python]
    exclude: "karrot\/.*\/migrations"
  - id: flake8
    name: flake8
    entry: flake8
    language: system
    types: [python]
  - id: makemessages
    name: makemessages
    entry: python manage.py makemessages
    language: system
    types: [python]
    stages: [push]
    require_serial: true
    pass_filenames: false

Migrate pre-commit config to new schema
Migrate pre-commit config to new schema
