Skip to content

Commit bf0019f

Browse files
authored
Merge pull request #12 from taskiq-python/feature/tox
2 parents 8959aa8 + aa24c3f commit bf0019f

File tree

3 files changed

+31
-2
lines changed

3 files changed

+31
-2
lines changed

.python-version

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
3.11.4
2+
3.10.12
3+
3.9.17
4+
3.8.17

aiohttp_deps/swagger.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
import inspect
22
from collections import defaultdict
33
from logging import getLogger
4-
from typing import Any, Awaitable, Callable, Dict, Optional, TypeVar, get_type_hints
4+
from typing import (
5+
Any,
6+
Awaitable,
7+
Callable,
8+
Dict,
9+
Optional,
10+
Tuple,
11+
TypeVar,
12+
get_type_hints,
13+
)
514

615
import pydantic
716
from aiohttp import web
@@ -95,7 +104,7 @@ def _add_route_def( # noqa: C901, WPS210, WPS211
95104
if extra_openapi_schemas:
96105
openapi_schema["components"]["schemas"].update(extra_openapi_schemas)
97106

98-
params: Dict[tuple[str, str], Any] = {}
107+
params: Dict[Tuple[str, str], Any] = {}
99108

100109
def _insert_in_params(data: Dict[str, Any]) -> None:
101110
element = params.get((data["name"], data["in"]))

tox.ini

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[tox]
2+
isolated_build = true
3+
env_list =
4+
py311
5+
py310
6+
py39
7+
py38
8+
9+
[testenv]
10+
skip_install = true
11+
allowlist_externals = poetry
12+
commands_pre =
13+
poetry install
14+
commands =
15+
pre-commit run --all-files
16+
poetry run pytest -vv

0 commit comments

Comments
 (0)