Skip to content

Commit 807a29b

Browse files
author
Andrew Brookins
committed
Set up tox
1 parent f44b7fa commit 807a29b

File tree

4 files changed

+22
-6
lines changed

4 files changed

+22
-6
lines changed

poetry.lock

+17-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ classifiers = [
1414
]
1515

1616
[tool.poetry.dependencies]
17-
python = "^3.9"
17+
python = "^3.8"
1818
redis = "^3.5.3"
1919
aioredis = "^2.0.0"
2020
pydantic = "^1.8.2"
@@ -41,6 +41,7 @@ pytest-xdist = "^2.4.0"
4141
twine = "^3.4.2"
4242
email-validator = "^1.1.3"
4343
tox = "^3.24.4"
44+
tox-pyenv = "^1.1.0"
4445

4546
[tool.poetry.scripts]
4647
migrate = "redis_om.model.cli.migrate:migrate"

redis_om/model/model.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ def __init__(
333333
self._pagination: list[str] = []
334334
self._model_cache: list[RedisModel] = []
335335

336-
def dict(self) -> dict[str, Any]:
336+
def dict(self) -> Dict[str, Any]:
337337
return dict(
338338
model=self.model,
339339
offset=self.offset,

tox.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[tox]
22
skipsdist = true
3-
envlist = py37, py38, py39, py310
3+
envlist = py38, py39, py310
44

55
[testenv]
66
whitelist_externals = poetry
77
commands =
88
poetry install -v
9-
poetry run pytest
9+
poetry run pytest

0 commit comments

Comments
 (0)