mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-13 17:52:19 +03:00
Add black and flake8 tox commands
This commit is contained in:
parent
ae4c4806ff
commit
751ec57338
|
@ -52,7 +52,7 @@ matrix:
|
||||||
env: DJANGO=master
|
env: DJANGO=master
|
||||||
|
|
||||||
- python: 3.7
|
- python: 3.7
|
||||||
env: TOXENV=lint
|
env: TOXENV=black,flake8
|
||||||
|
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- env: DJANGO=master
|
- env: DJANGO=master
|
||||||
|
|
18
tox.ini
18
tox.ini
|
@ -1,7 +1,7 @@
|
||||||
[tox]
|
[tox]
|
||||||
envlist =
|
envlist =
|
||||||
py{27,35,36,37}-django{111,20,21,22,master},
|
py{27,35,36,37}-django{111,20,21,22,master},
|
||||||
lint
|
black,flake8
|
||||||
|
|
||||||
[travis:env]
|
[travis:env]
|
||||||
DJANGO =
|
DJANGO =
|
||||||
|
@ -26,8 +26,14 @@ deps =
|
||||||
djangomaster: https://github.com/django/django/archive/master.zip
|
djangomaster: https://github.com/django/django/archive/master.zip
|
||||||
commands = {posargs:py.test --cov=graphene_django graphene_django examples}
|
commands = {posargs:py.test --cov=graphene_django graphene_django examples}
|
||||||
|
|
||||||
[testenv:lint]
|
[testenv:black]
|
||||||
basepython = python
|
basepython = python3.7
|
||||||
deps =
|
deps = black
|
||||||
prospector
|
commands =
|
||||||
commands = prospector graphene_django -0
|
black graphene_django examples --check
|
||||||
|
|
||||||
|
[testenv:flake8]
|
||||||
|
basepython = python3.7
|
||||||
|
deps = flake8
|
||||||
|
commands =
|
||||||
|
flake8 graphene_django examples
|
||||||
|
|
Loading…
Reference in New Issue
Block a user