mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-13 01:32:24 +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
|
||||
format:
|
||||
black --exclude "/migrations/" graphene_django examples
|
||||
black --exclude "/migrations/" graphene_django examples setup.py
|
||||
|
||||
.PHONY: lint
|
||||
lint:
|
||||
|
|
11
setup.py
11
setup.py
|
@ -25,10 +25,7 @@ tests_require = [
|
|||
] + rest_framework_require
|
||||
|
||||
|
||||
dev_requires = [
|
||||
"black==19.3b0",
|
||||
"flake8==3.7.7",
|
||||
] + tests_require
|
||||
dev_requires = ["black==19.3b0", "flake8==3.7.7"] + tests_require
|
||||
|
||||
setup(
|
||||
name="graphene-django",
|
||||
|
@ -64,7 +61,11 @@ setup(
|
|||
setup_requires=["pytest-runner"],
|
||||
tests_require=tests_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,
|
||||
zip_safe=False,
|
||||
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
|
||||
deps = black
|
||||
commands =
|
||||
black --exclude "/migrations/" graphene_django examples --check
|
||||
black --exclude "/migrations/" graphene_django examples setup.py --check
|
||||
|
||||
[testenv:flake8]
|
||||
basepython = python3.7
|
||||
|
|
Loading…
Reference in New Issue
Block a user