From 0b6fd1da5458a0ef56f898b03e5caeb63489e9eb Mon Sep 17 00:00:00 2001 From: Jirka Borovec Date: Tue, 1 Jun 2021 07:43:50 +0200 Subject: [PATCH] Update pre-commit and add new hooks (#7781) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * update precommit * Update .pre-commit-config.yaml Co-authored-by: Carlos Mocholí * Apply suggestions from code review Co-authored-by: Carlos Mocholí Co-authored-by: Carlos Mocholí --- .pre-commit-config.yaml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5814ea965d..b7dcc232e6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,17 +19,28 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.0.1 hooks: - - id: trailing-whitespace - id: end-of-file-fixer + - id: trailing-whitespace + - id: check-yaml + - id: check-docstring-first + - id: check-executables-have-shebangs + - id: check-toml - repo: https://github.com/PyCQA/isort rev: 5.8.0 hooks: - id: isort - args: [--settings-path, ./pyproject.toml] + name: Format imports - repo: https://github.com/pre-commit/mirrors-yapf rev: v0.31.0 hooks: - id: yapf - args: [--parallel, --in-place] + name: Format code + language: python + + - repo: https://github.com/PyCQA/flake8 + rev: 3.9.2 + hooks: + - id: flake8 + name: Check PEP8