Skip to content

Commit 81d613c

Browse files
committed
move tox configuration into pyproject.toml
1 parent b081498 commit 81d613c

File tree

2 files changed

+22
-32
lines changed

2 files changed

+22
-32
lines changed

pyproject.toml

+22
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,25 @@ homepage = "https://github.com/medecau/scrapedict"
2626
[build-system]
2727
requires = ['setuptools']
2828
build-backend = 'setuptools.build_meta'
29+
30+
[tool.tox]
31+
requires = ["tox>=4.19"]
32+
env_list = ["3.13", "3.8", "doctest", "lint"]
33+
34+
[tool.tox.env_run_base]
35+
description = "Run test under {base_python}"
36+
deps = ["pytest"]
37+
commands = [["pytest"]]
38+
39+
[tool.tox.env.doctest]
40+
description = "Run doctests"
41+
deps = ["pytest", "pytest-markdown-docs"]
42+
commands = [["pytest", "--markdown-docs"]]
43+
44+
[tool.tox.env.lint]
45+
description = "Run linters"
46+
deps = ["ruff"]
47+
commands = [
48+
["ruff", "check", "."],
49+
["ruff", "format", "--check", "."],
50+
]

tox.ini

-32
This file was deleted.

0 commit comments

Comments
 (0)