mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-13 17:52:19 +03:00
Include setup.py in black formatting
This commit is contained in:
parent
91c1278d1a
commit
b92b7b05a3
2
Makefile
2
Makefile
|
@ -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:
|
||||||
|
|
11
setup.py
11
setup.py
|
@ -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",
|
||||||
|
|
2
tox.ini
2
tox.ini
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user