From 16b6ccace909fcae042abe69ecdeb52802f3c1e6 Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Mon, 8 Jul 2019 09:38:36 -0700 Subject: [PATCH] Set up a few more pre-commit hook (#7830) --- .pre-commit-config.yaml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index eb6274e58..5edccd70c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,8 +15,24 @@ # limitations under the License. # repos: - - repo: https://github.com/ambv/black +- repo: https://github.com/ambv/black rev: stable hooks: - - id: black + - id: black language_version: python3.6 + +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v2.2.3 + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + - id: check-docstring-first + - id: check-json + - id: check-added-large-files + - id: check-yaml + - id: debug-statements + +- repo: https://gitlab.com/pycqa/flake8 + rev: 3.7.1 + hooks: + - id: flake8