From 751ec57338fce5d9a4244052d37b599250288494 Mon Sep 17 00:00:00 2001 From: Jonathan Kim Date: Mon, 10 Jun 2019 10:39:39 -0700 Subject: [PATCH] Add black and flake8 tox commands --- .travis.yml | 2 +- tox.ini | 18 ++++++++++++------ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 244bb72..d3b9e5b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -52,7 +52,7 @@ matrix: env: DJANGO=master - python: 3.7 - env: TOXENV=lint + env: TOXENV=black,flake8 allow_failures: - env: DJANGO=master diff --git a/tox.ini b/tox.ini index 868a94e..7413da0 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,7 @@ [tox] envlist = py{27,35,36,37}-django{111,20,21,22,master}, - lint + black,flake8 [travis:env] DJANGO = @@ -26,8 +26,14 @@ deps = djangomaster: https://github.com/django/django/archive/master.zip commands = {posargs:py.test --cov=graphene_django graphene_django examples} -[testenv:lint] -basepython = python -deps = - prospector -commands = prospector graphene_django -0 +[testenv:black] +basepython = python3.7 +deps = black +commands = + black graphene_django examples --check + +[testenv:flake8] +basepython = python3.7 +deps = flake8 +commands = + flake8 graphene_django examples