aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis M <alexis@notmyidea.org>2019-10-11 20:36:32 +0200
committerAlexis Metaireau <alexis@notmyidea.org>2019-10-14 21:20:38 +0200
commitdc05d1cd17a4f63078f49f2d234e3d58725d5a3d (patch)
tree50482e8d08f622b942cc4c6c5b6acbce7e6fc84d
parentf260a2c9e7b2f34d49ef4c2e50ce83a2361cf343 (diff)
downloadihatemoney-mirror-dc05d1cd17a4f63078f49f2d234e3d58725d5a3d.zip
ihatemoney-mirror-dc05d1cd17a4f63078f49f2d234e3d58725d5a3d.tar.gz
ihatemoney-mirror-dc05d1cd17a4f63078f49f2d234e3d58725d5a3d.tar.bz2
Add black in the tox matrix.
-rw-r--r--dev-requirements.txt1
-rw-r--r--tox.ini15
2 files changed, 13 insertions, 3 deletions
diff --git a/dev-requirements.txt b/dev-requirements.txt
index e861856..9fa2dc2 100644
--- a/dev-requirements.txt
+++ b/dev-requirements.txt
@@ -3,3 +3,4 @@ tox
pytest
flake8
Flask-Testing
+black
diff --git a/tox.ini b/tox.ini
index 550d67a..5e6d5e4 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
[tox]
-envlist = py37,py36,py35,py34,docs,lint
+envlist = py37,py36,py35,docs,flake8,black
skip_missing_interpreters = True
[testenv]
@@ -21,7 +21,13 @@ deps =
-rdocs/requirements.txt
changedir = {toxinidir}
-[testenv:lint]
+[testenv:black]
+commands = black --check --target-version=py34 .
+deps =
+ -rdev-requirements.txt
+changedir = {toxinidir}
+
+[testenv:flake8]
commands = flake8 ihatemoney
deps =
-rdev-requirements.txt
@@ -30,9 +36,12 @@ changedir = {toxinidir}
[flake8]
exclude = migrations
max_line_length = 100
+extend-ignore =
+ # See https://github.com/PyCQA/pycodestyle/issues/373
+ E203,
[travis]
python =
3.5: py35
- 3.6: py36, docs, lint
+ 3.6: py36, docs, black, flake8
3.7: py37