Skip to content

Commit 3e232ec

Browse files
authored
feat: tox config in pyproject.toml (#678)
1 parent 3b0adea commit 3e232ec

File tree

2 files changed

+21
-13
lines changed

2 files changed

+21
-13
lines changed

pyproject.toml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,11 @@ version_toml = ["pyproject.toml:tool.poetry.version"]
6262

6363
[tool.semantic_release.changelog]
6464
template_dir = ".github/templates"
65-
exclude_commit_patterns = ["chore: version bump", "chore(deps)", "chore(deps-dev)"]
65+
exclude_commit_patterns = [
66+
"chore: version bump",
67+
"chore(deps)",
68+
"chore(deps-dev)",
69+
]
6670

6771
[tool.semantic_release.changelog.environment]
6872
trim_blocks = true
@@ -80,6 +84,22 @@ addopts = """\
8084
pythonpath = "tests/server"
8185
django_find_project = false
8286

87+
[tool.tox]
88+
legacy_tox_ini = """
89+
[tox]
90+
isolated_build = true
91+
envlist =
92+
python{38,39,310,311,312}-django{32,41,42,50,51}
93+
94+
[testenv]
95+
skip_install = true
96+
allowlist_externals = poetry
97+
set_env =
98+
PYTHONDEVMODE = 1
99+
commands_pre = poetry install
100+
commands = poetry run python -m pytest tests/
101+
"""
102+
83103
[build-system]
84104
requires = ["poetry-core>=1.0.0"]
85105
build-backend = "poetry.core.masonry.api"

tox.ini

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)