From ddbbf7214cfab4f4c07b64c3f32ca2ad8a29f588 Mon Sep 17 00:00:00 2001 From: Yannick DAYER <yannick.dayer@idiap.ch> Date: Tue, 15 Jun 2021 13:26:52 +0200 Subject: [PATCH] updating the template precommit config file --- bob/devtools/templates/.pre-commit-config.yaml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/bob/devtools/templates/.pre-commit-config.yaml b/bob/devtools/templates/.pre-commit-config.yaml index 08ae7411..aca55f5b 100644 --- a/bob/devtools/templates/.pre-commit-config.yaml +++ b/bob/devtools/templates/.pre-commit-config.yaml @@ -2,16 +2,20 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/timothycrosley/isort - rev: 4.3.21-2 + rev: 5.8.0 hooks: - id: isort - args: [-sl] + args: [--sl, --line-length, "88"] - repo: https://github.com/psf/black - rev: stable + rev: 20.8b1 hooks: - id: black + - repo: https://gitlab.com/pycqa/flake8 + rev: 3.9.0 + hooks: + - id: flake8 - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v2.0.0 + rev: v3.4.0 hooks: - id: check-ast - id: check-case-conflict @@ -19,7 +23,6 @@ repos: - id: end-of-file-fixer - id: debug-statements - id: check-added-large-files - - id: flake8 - repo: local hooks: - id: sphinx-build -- GitLab