From 2969dc21b0b3d8d92ab907f8610f4c4e9c900a3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Thu, 26 Mar 2020 18:57:21 +0000 Subject: Add flake8 to configuration and pre-commit. --- .pre-commit-config.yaml | 4 ++++ setup.cfg | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 674c995..5204633 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,3 +9,7 @@ repos: rev: 19.10b0 hooks: - id: black +- repo: https://gitlab.com/pycqa/flake8 + rev: 3.7.9 + hooks: + - id: flake8 diff --git a/setup.cfg b/setup.cfg index 006215e..168a038 100644 --- a/setup.cfg +++ b/setup.cfg @@ -34,3 +34,8 @@ norecursedirs = venv .env timeout = 120 + +[flake8] +max-line-length = 88 +# Ignore long line errors, black takes care of them. +extend-ignore = E501 -- cgit v1.2.3