summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@flameeyes.com>2020-03-26 19:57:21 +0100
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-03-26 20:00:32 +0100
commit2969dc21b0b3d8d92ab907f8610f4c4e9c900a3c (patch)
treefe613047ff99c791bafa3b6d7fb560c48a82fad8
parentFix errors identified by flake8. (diff)
downloadglucometerutils-2969dc21b0b3d8d92ab907f8610f4c4e9c900a3c.tar
glucometerutils-2969dc21b0b3d8d92ab907f8610f4c4e9c900a3c.tar.gz
glucometerutils-2969dc21b0b3d8d92ab907f8610f4c4e9c900a3c.tar.bz2
glucometerutils-2969dc21b0b3d8d92ab907f8610f4c4e9c900a3c.tar.lz
glucometerutils-2969dc21b0b3d8d92ab907f8610f4c4e9c900a3c.tar.xz
glucometerutils-2969dc21b0b3d8d92ab907f8610f4c4e9c900a3c.tar.zst
glucometerutils-2969dc21b0b3d8d92ab907f8610f4c4e9c900a3c.zip
-rw-r--r--.pre-commit-config.yaml4
-rw-r--r--setup.cfg5
2 files changed, 9 insertions, 0 deletions
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