[PATCH 07 of 10 logilab-database] [enh] add flake8 to tox.ini

Laurent Peuch cortex at worlddomination.be
Fri Apr 3 09:14:15 CEST 2020


# HG changeset patch
# User Laurent Peuch <cortex at worlddomination.be>
# Date 1585790087 -7200
#      Thu Apr 02 03:14:47 2020 +0200
# Node ID bc8c31fb228fd8f6543342baf5b05341eb37c5b4
# Parent  9895c9cf8d14b477b1a8efb6908e47389ca858ac
# Available At https://hg.logilab.org/users/lpeuch/logilab-database
#              hg pull https://hg.logilab.org/users/lpeuch/logilab-database -r bc8c31fb228f
# EXP-Topic good-practice-modernisation
[enh] add flake8 to tox.ini

diff --git a/tox.ini b/tox.ini
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
 [tox]
-envlist=py3,check-manifest,black,black-run
+envlist=py3,check-manifest,flake8,black,black-run
 
 [testenv]
 deps =
@@ -15,6 +15,18 @@ deps =
 commands=
   {envpython} -m check_manifest {toxinidir}
 
+[testenv:flake8]
+skip_install = true
+deps =
+  flake8 >= 3.6
+commands = flake8
+
+[flake8]
+format = pylint
+ignore = W503, E203, E731, E231
+max-line-length = 100
+exclude = docs/*,.tox/*
+
 [testenv:black]
 basepython = python3
 skip_install = true



More information about the cubicweb-devel mailing list