[PATCH 08 of 11 logilab-common] [tox] integrate flake8 with black compatibles options

Laurent Peuch cortex at worlddomination.be
Wed Apr 1 16:20:09 CEST 2020


# HG changeset patch
# User Laurent Peuch <cortex at worlddomination.be>
# Date 1584613656 -3600
#      Thu Mar 19 11:27:36 2020 +0100
# Node ID e3ee44e0c9701d5ff5789c4f1535cccf5f8a91f9
# Parent  b1b8320eb626ef5cb36bf3e72cd619722db7bfe8
# Available At https://hg.logilab.org/users/lpeuch/logilab-common
#              hg pull https://hg.logilab.org/users/lpeuch/logilab-common -r e3ee44e0c970
# EXP-Topic types-annotations-and-cleaning
[tox] integrate flake8 with black compatibles options

diff --git a/tox.ini b/tox.ini
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
 [tox]
-envlist=py3,mypy,black,black-run
+envlist=py3,mypy,flake8,black,black-run
 
 [testenv]
 deps =
@@ -33,3 +33,16 @@ skip_install = true
 deps =
   black >= 19.10b0
 commands = black .
+
+[testenv:flake8]
+skip_install = true
+deps =
+  flake8 >= 3.6
+commands = flake8
+
+[flake8]
+basepython = python3
+format = pylint
+ignore = W503, E203, E731, E231
+max-line-length = 100
+exclude = docs/*,.tox/*,./test/data/*




More information about the cubicweb-devel mailing list