Skip to content

Commit b67d3c0

Browse files
committed
build: tox config in pyproject.toml
1 parent d02c405 commit b67d3c0

File tree

2 files changed

+58
-35
lines changed

2 files changed

+58
-35
lines changed

pyproject.toml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,61 @@ convention = "numpy"
9696

9797
[tool.setuptools.packages.find]
9898
include = ["detectree", "detectree.*"]
99+
100+
[tool.tox]
101+
env_list = [
102+
"3.10",
103+
"3.11",
104+
"3.12",
105+
"3.13",
106+
"lint"
107+
]
108+
requires = [
109+
"tox>=4.19"
110+
]
111+
112+
[tool.tox.env.lint]
113+
commands = [
114+
["python", "-m", "build"],
115+
["sphinx-build", "docs", "docs/_build"],
116+
["twine", "check", "dist/*"]
117+
]
118+
extras = [
119+
"dev",
120+
"doc",
121+
"test"
122+
]
123+
whitelist_externals = [
124+
"build",
125+
"sphinx-build",
126+
"twine"
127+
]
128+
129+
[tool.tox.env_run_base]
130+
commands = [
131+
["pytest", "-s", "--cov=detectree", "--cov-report=xml", "tests", "{posargs}"]
132+
]
133+
conda_deps = [
134+
"lightgbm"
135+
]
136+
extras = [
137+
"test"
138+
]
139+
whitelist_externals = [
140+
"pytest"
141+
]
142+
143+
[tool.tox.gh.python]
144+
"3.10" = [
145+
"3.10"
146+
]
147+
"3.11" = [
148+
"3.11"
149+
]
150+
"3.12" = [
151+
"3.12"
152+
]
153+
"3.13" = [
154+
"3.13",
155+
"lint"
156+
]

tox.ini

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

0 commit comments

Comments
 (0)