Skip to content

Commit

Permalink
Merge pull request #85 from jorenham/tox
Browse files Browse the repository at this point in the history
configure tox
  • Loading branch information
jorenham authored Oct 14, 2024
2 parents 62c33b2 + eb38b4e commit 5d5e930
Show file tree
Hide file tree
Showing 2 changed files with 128 additions and 3 deletions.
110 changes: 108 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 20 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ ruff = "^0.6.9"
[tool.poetry.group.dev.dependencies]
poethepoet = "^0.29.0"
pre-commit = "^4.0.1"
tox = "^4.21.2"

[tool.poe.executor]
type = "poetry"
Expand All @@ -54,10 +55,10 @@ rm -rf
./**/.mypy_cache
./**/.ruff_cache
"""

lint = "ruff check"
format = "ruff format"
pre-commit = "pre-commit run --all-files"
tox = "tox -p all"

_typetest_bpr = "basedpyright tests/typetests"
_typetest_mypy = "mypy --config-file=pyproject.toml tests/typetests"
Expand Down Expand Up @@ -207,3 +208,21 @@ typing = ["collections.abc", "types", "typing", "typing_extensions"]
[tool.ruff.lint.flake8-annotations]
allow-star-arg-any = true
mypy-init-return = true

[tool.tox]
isolated_build = true
env_list = ["3.10", "3.11", "3.12", "3.13", "precommit"]

[tool.tox.env_run_base]
description = "stubtest with {base_python}"
skip_install = true
allowlist_externals = ["poetry", "poe"]
commands_pre = [["poetry", "install"]]
commands = [["poe", "stubtest"]]

[tool.tox.env.precommit]
description = "pre-commit"
skip_install = true
allowlist_externals = ["poetry", "poe"]
commands_pre = [["poetry", "install"]]
commands = [["poe", "pre-commit"]]

0 comments on commit 5d5e930

Please sign in to comment.