mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-22 09:36:44 +03:00
Fixed lint & imports
This commit is contained in:
parent
3e5319cf70
commit
3d41a500c9
|
@ -9,8 +9,6 @@ matrix:
|
|||
python: 3.5
|
||||
- env: TOXENV=py36
|
||||
python: 3.6
|
||||
- env: TOXENV=py37
|
||||
python: 3.7
|
||||
- env: TOXENV=pypy
|
||||
python: pypy-5.7.1
|
||||
- env: TOXENV=pre-commit
|
||||
|
|
|
@ -18,7 +18,7 @@ try:
|
|||
from .thenables_asyncio import await_and_execute
|
||||
except ImportError:
|
||||
|
||||
def isawaitable(obj):
|
||||
def isawaitable(obj): # type: ignore
|
||||
return False
|
||||
|
||||
|
||||
|
|
|
@ -3,4 +3,3 @@ def await_and_execute(obj, on_resolve):
|
|||
return on_resolve(await obj)
|
||||
|
||||
return build_resolve_async()
|
||||
|
||||
|
|
|
@ -1,16 +1,7 @@
|
|||
import pytest
|
||||
from graphql.execution.executors.asyncio import AsyncioExecutor
|
||||
|
||||
from graphene.types import (
|
||||
ID,
|
||||
Argument,
|
||||
Field,
|
||||
InputField,
|
||||
InputObjectType,
|
||||
NonNull,
|
||||
ObjectType,
|
||||
Schema,
|
||||
)
|
||||
from graphene.types import ID, Field, ObjectType, Schema
|
||||
from graphene.types.scalars import String
|
||||
from graphene.relay.mutation import ClientIDMutation
|
||||
|
||||
|
|
4
tox.ini
4
tox.ini
|
@ -3,11 +3,11 @@ envlist = flake8,py27,py34,py35,py36,py37,pre-commit,pypy,mypy
|
|||
skipsdist = true
|
||||
|
||||
[testenv]
|
||||
deps =
|
||||
deps =
|
||||
.[test]
|
||||
py{35,36,37}: pytest-asyncio
|
||||
setenv =
|
||||
PYTHONPATH = .:{envdir}
|
||||
PYTHONPATH = .:{envdir}
|
||||
commands =
|
||||
py{27,34,py}: py.test --cov=graphene graphene examples {posargs}
|
||||
py{35,36,37}: py.test --cov=graphene graphene examples tests_asyncio {posargs}
|
||||
|
|
Loading…
Reference in New Issue
Block a user