mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-22 09:36:44 +03:00
7ef3c8ee3e
* Changed dependencies to core-next * Converted Scalars * ResolveInfo name change * Ignore .venv * Make Schema compatible with GraphQL-core-next * Ignore more venv names and mypy and pytest caches * Remove print statements for debugging in schema test * core-next now provides out_type and out_name * Adapt date and time scalar types to core-next * Ignore the non-standard result.invalid flag * Results are named tuples in core-next (immutable) * Enum values are returned as dict in core-next * Fix mutation tests with promises * Make all 345 tests pass with graphql-core-next * Remove the compat module which was only needed for older Py version * Remove object as base class (not needed in Py 3) * We can assume that dicts are ordered in Py 3.6+ * Make use of the fact that dicts are iterable * Use consistent style of importing from pytest * Restore compatibility with graphql-relay-py v3 Add adpaters for the PageInfo and Connection args. * Avoid various deprecation warnings * Use graphql-core 3 instead of graphql-core-next * Update dependencies, reformat changes with black * Update graphene/relay/connection.py Co-Authored-By: Jonathan Kim <jkimbo@gmail.com> * Run black on setup.py * Remove trailing whitespace
38 lines
605 B
INI
38 lines
605 B
INI
[tox]
|
|
envlist = flake8,py36,py37,pre-commit,mypy
|
|
skipsdist = true
|
|
|
|
[testenv]
|
|
deps =
|
|
.[test]
|
|
setenv =
|
|
PYTHONPATH = .:{envdir}
|
|
commands =
|
|
py{36,37}: py.test --cov=graphene graphene examples tests_asyncio {posargs}
|
|
|
|
[testenv:pre-commit]
|
|
basepython=python3.7
|
|
deps =
|
|
pre-commit>0.12.0
|
|
setenv =
|
|
LC_CTYPE=en_US.UTF-8
|
|
commands =
|
|
pre-commit {posargs:run --all-files}
|
|
|
|
[testenv:mypy]
|
|
basepython=python3.7
|
|
deps =
|
|
mypy>=0.720
|
|
commands =
|
|
mypy graphene
|
|
|
|
[testenv:flake8]
|
|
basepython=python3.6
|
|
deps =
|
|
flake8>=3.7,<4
|
|
commands =
|
|
pip install --pre -e .
|
|
flake8 graphene
|
|
|
|
[pytest]
|