Skip to content

Commit

Permalink
test: revert to tox.ini (see github.com/tox-dev/tox/issues/3457)
Browse files Browse the repository at this point in the history
  • Loading branch information
martibosch committed Jan 2, 2025
1 parent 9657e62 commit 0941763
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 81 deletions.
81 changes: 0 additions & 81 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -95,84 +95,3 @@ convention = "numpy"

[tool.setuptools.packages.find]
include = ["detectree", "detectree.*"]

[tool.tox]
env_list = [
"lint",
"py39",
"py310",
"py311",
"py312"
]
requires = [
"tox>=4.19"
]

[tool.tox.env.lint]
commands = [
[
[
"python",
"-m",
"build"
],
[
"sphinx-build",
"docs",
"docs/_build"
],
[
"twine",
"check",
"dist/*"
]
]
]
extras = [
"dev",
"doc",
"test"
]
whitelist_externals = [
"build",
"sphinx-build",
"twine"
]

[tool.tox.env_run_base]
commands = [
[
"pytest",
"-s",
"--cov=detectree",
"--cov-append",
"--cov-report=xml",
"--cov-report",
"term-missing",
"tests"
]
]
conda_deps = [
"lightgbm"
]
extras = [
"test"
]
whitelist_externals = [
"pytest"
]

[tool.tox.gh.python]
"3.9" = [
"3.9"
]
"3.10" = [
"3.10"
]
"3.11" = [
"3.11"
]
"3.12" = [
"3.12",
"lint"
]
37 changes: 37 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[tox]
# add py313 when https://github.com/microsoft/LightGBM/pull/6668 is merged
env_list = py38, py39, py310, py311, py312, lint

[gh]
python =
3.12 = 3.12, lint
3.11 = 3.11
3.10 = 3.10
3.9 = 3.9
3.8 = 3.8

[testenv:lint]
conda_deps=
lightgbm
allowlist_externals =
build
sphinx-build
twine
extras =
test
doc
dev
commands =
python -m build -s
sphinx-build docs docs/_build
twine check dist/*

[testenv]
conda_deps=
lightgbm
allowlist_externals =
pytest
extras =
test
commands =
pytest -s --cov=detectree --cov-append --cov-report=xml --cov-report term-missing tests

0 comments on commit 0941763

Please sign in to comment.