Skip to content

Commit 5d5e930

Browse files
authored
Merge pull request #85 from jorenham/tox
configure tox
2 parents 62c33b2 + eb38b4e commit 5d5e930

File tree

2 files changed

+128
-3
lines changed

2 files changed

+128
-3
lines changed

poetry.lock

Lines changed: 108 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ ruff = "^0.6.9"
4242
[tool.poetry.group.dev.dependencies]
4343
poethepoet = "^0.29.0"
4444
pre-commit = "^4.0.1"
45+
tox = "^4.21.2"
4546

4647
[tool.poe.executor]
4748
type = "poetry"
@@ -54,10 +55,10 @@ rm -rf
5455
./**/.mypy_cache
5556
./**/.ruff_cache
5657
"""
57-
5858
lint = "ruff check"
5959
format = "ruff format"
6060
pre-commit = "pre-commit run --all-files"
61+
tox = "tox -p all"
6162

6263
_typetest_bpr = "basedpyright tests/typetests"
6364
_typetest_mypy = "mypy --config-file=pyproject.toml tests/typetests"
@@ -207,3 +208,21 @@ typing = ["collections.abc", "types", "typing", "typing_extensions"]
207208
[tool.ruff.lint.flake8-annotations]
208209
allow-star-arg-any = true
209210
mypy-init-return = true
211+
212+
[tool.tox]
213+
isolated_build = true
214+
env_list = ["3.10", "3.11", "3.12", "3.13", "precommit"]
215+
216+
[tool.tox.env_run_base]
217+
description = "stubtest with {base_python}"
218+
skip_install = true
219+
allowlist_externals = ["poetry", "poe"]
220+
commands_pre = [["poetry", "install"]]
221+
commands = [["poe", "stubtest"]]
222+
223+
[tool.tox.env.precommit]
224+
description = "pre-commit"
225+
skip_install = true
226+
allowlist_externals = ["poetry", "poe"]
227+
commands_pre = [["poetry", "install"]]
228+
commands = [["poe", "pre-commit"]]

0 commit comments

Comments
 (0)