Skip to content

Commit

Permalink
make lint
Browse files Browse the repository at this point in the history
  • Loading branch information
prostomarkeloff committed Apr 8, 2020
1 parent 185be45 commit 26808fd
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 14 deletions.
2 changes: 1 addition & 1 deletion tests/client/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ async def signal(ctx: RequestContext):
assert ctx.result.exception_data["captured"] == "by signal"
assert ctx.result.data is None


@pytest.mark.asyncio
async def test_no_http_client(client):
with pytest.raises(NotImplementedError):
client.http_client

2 changes: 1 addition & 1 deletion tests/vkscript/test_execute_vkscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,4 @@ async def preprocessor(x, y):
@pytest.mark.asyncio
async def test_execute():
assert demo_args.build(10, 20) == "var i=10;i=i*(20);return i;"
assert await demo_preprocessor(7, 3) == "return 7+4*7;"
assert await demo_preprocessor(7, 3) == "return 7+4*7;"
3 changes: 2 additions & 1 deletion vkwave/api/methods/execute.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from ._category import Category
from vkwave.types.responses import ExecuteResponse

from ._category import Category


class Execute(Category):
async def __call__(self, code: str, return_raw_response: bool = False):
Expand Down
5 changes: 2 additions & 3 deletions vkwave/vkscript/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import vkwave.vkscript.handlers.statements
from .converter import VKScriptConverter
from .execute import Execute
from .execute import execute

from .converter import VKScriptConverter
from .execute import Execute, execute

__all__ = ("execute", "Execute", "VKScriptConverter")
7 changes: 2 additions & 5 deletions vkwave/vkscript/converter.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import typing
import contextvars
import typing
from typing import Type, TypeVar

import pydantic

from typing import Type
from typing import TypeVar


T = TypeVar("T")


Expand Down
3 changes: 1 addition & 2 deletions vkwave/vkscript/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import types

from vkwave.api.methods import APIOptionsRequestContext
from vkwave.vkscript import Scope
from vkwave.vkscript import VKScriptConverter
from vkwave.vkscript import Scope, VKScriptConverter


def execute(func: types.FunctionType):
Expand Down
1 change: 0 additions & 1 deletion vkwave/vkscript/handlers/expressions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

from ..converter import VKScriptConverter


OPS = {
ast.Add: "+",
ast.Sub: "-",
Expand Down

0 comments on commit 26808fd

Please sign in to comment.