repos:
- repo: https://github.com/ambv/black
  rev: stable
  hooks:
  - id: black
    args: [--line-length=88, --safe]
    python_version: python3.6

Add a pre-commit hook for Black
Add a pre-commit hook for Black

https://github.com/ambv/black