Include setup.py in black formatting

This commit is contained in:
Jonathan Kim 2019-06-19 16:08:57 +01:00
parent 91c1278d1a
commit b92b7b05a3
3 changed files with 8 additions and 7 deletions

View File

@ -14,7 +14,7 @@ test: tests # Alias test -> tests
.PHONY: format .PHONY: format
format: format:
black --exclude "/migrations/" graphene_django examples black --exclude "/migrations/" graphene_django examples setup.py
.PHONY: lint .PHONY: lint
lint: lint:

View File

@ -25,10 +25,7 @@ tests_require = [
] + rest_framework_require ] + rest_framework_require
dev_requires = [ dev_requires = ["black==19.3b0", "flake8==3.7.7"] + tests_require
"black==19.3b0",
"flake8==3.7.7",
] + tests_require
setup( setup(
name="graphene-django", name="graphene-django",
@ -64,7 +61,11 @@ setup(
setup_requires=["pytest-runner"], setup_requires=["pytest-runner"],
tests_require=tests_require, tests_require=tests_require,
rest_framework_require=rest_framework_require, rest_framework_require=rest_framework_require,
extras_require={"test": tests_require, "rest_framework": rest_framework_require, "dev": dev_requires}, extras_require={
"test": tests_require,
"rest_framework": rest_framework_require,
"dev": dev_requires,
},
include_package_data=True, include_package_data=True,
zip_safe=False, zip_safe=False,
platforms="any", platforms="any",

View File

@ -30,7 +30,7 @@ commands = {posargs:py.test --cov=graphene_django graphene_django examples}
basepython = python3.7 basepython = python3.7
deps = black deps = black
commands = commands =
black --exclude "/migrations/" graphene_django examples --check black --exclude "/migrations/" graphene_django examples setup.py --check
[testenv:flake8] [testenv:flake8]
basepython = python3.7 basepython = python3.7