# See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks default_language_version: # force all unspecified python hooks to run python3 python: python3 repos: - repo: https://github.com/ambv/black rev: 19.10b0 hooks: - id: black - repo: https://github.com/pre-commit/pre-commit-hooks rev: v2.5.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - id: check-json - repo: https://gitlab.com/pycqa/flake8 rev: 3.8.2 hooks: - id: flake8 args: [--max-line-length=120, '--ignore=E203,W503,E741'] # - id: pretty-format-json # args: [--autofix, --no-sort-keys]