From 1b30bfc454c96be03562ffdb406b9b7b2843fa5e Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Mon, 4 Apr 2022 17:21:47 +0200 Subject: [PATCH] Added more pre-commit hooks --- .pre-commit-config.yaml | 21 +++++++++++++++++++-- setup.cfg | 3 +++ 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c2f163aa7..18c7457a1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,14 +2,31 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.2.0 + rev: v4.1.0 hooks: # - id: trailing-whitespace # - id: end-of-file-fixer - id: check-yaml + - id: check-json + - id: check-xml + - id: check-symlinks - id: check-added-large-files - repo: https://github.com/Lucas-C/pre-commit-hooks-nodejs - rev: v1.1.1 + rev: v1.1.2 hooks: - id: markdown-toc + +- repo: https://github.com/pycqa/flake8 + rev: 4.0.1 + hooks: + - id: flake8 + additional_dependencies: + - flake8-bugbear + - flake8-comprehensions + - flake8-simplify + +- repo: https://github.com/psf/black + rev: 22.3.0 + hooks: + - id: black diff --git a/setup.cfg b/setup.cfg index 862dce588..1dd336c25 100644 --- a/setup.cfg +++ b/setup.cfg @@ -5,3 +5,6 @@ tag = True [metadata] description-file = README.md + +[flake8] +max-line-length = 120