Skip to content

Commit

Permalink
for now, isolated to tox.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
ESadek-MO committed Nov 21, 2024
1 parent 9696c16 commit b8c6efb
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 29 deletions.
29 changes: 0 additions & 29 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -193,32 +193,3 @@ known-first-party = ["tephi"]

[tool.ruff.lint.pydocstyle]
convention = "numpy"

[tool.tox]
requires = ["tox-conda"]
env_list = ["3.8", "3.9", "3.10", "3.11"]
base_python = [""]

[tool.tox.env.tests]
description = "invoke pytest to run automated tests"
deps = [
"pytest",
"pytest-cov",
"filelock",
"requests",
"imagehash",
]
conda_env = "requirements/dev.yml"
commands = ["pytest --cov tephi --cov-report term-missing {posargs}"]

[tool.toox.env.doctests]
description = "invoke sphinx-build to build the docs/run the doctests"
set_env.DOCSDIR = "/docs/source"
set_env.BUILDDIR = "/docs/_build"
conda_env = "requirements/rtd.yml"
commands = [
["sphinx-apidoc -o", "{env:DOCSDIR}/api", "tephi tephi/tests"],
["sphinx-build -W --keep-going -b html -d", "{env:BUILDDIR}/doctrees", "{env:DOCSDIR}", "{env:BUILDDIR}/html", "{posargs}"],
["doctests: sphinx-build -b doctest -d", "{env:BUILDDIR}/doctrees", "{env:DOCSDIR}", "{env:BUILDDIR}/doctest", "{posargs}"]
]

26 changes: 26 additions & 0 deletions tox.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
requires = ["tox-conda"]
env_list = ["3.8", "3.9", "3.10", "3.11"]
base_python = [""]

[env.tests]
description = "invoke pytest to run automated tests"
deps = [
"pytest",
"pytest-cov",
"filelock",
"requests",
"imagehash",
]
conda_env = "requirements/dev.yml"
commands = ["pytest --cov tephi --cov-report term-missing {posargs}"]

[env.doctests]
description = "invoke sphinx-build to build the docs/run the doctests"
set_env.DOCSDIR = "/docs/source"
set_env.BUILDDIR = "/docs/_build"
conda_env = "requirements/rtd.yml"
commands = [
["sphinx-apidoc -o", "{env:DOCSDIR}/api", "tephi tephi/tests"],
["sphinx-build -W --keep-going -b html -d", "{env:BUILDDIR}/doctrees", "{env:DOCSDIR}", "{env:BUILDDIR}/html", "{posargs}"],
["doctests: sphinx-build -b doctest -d", "{env:BUILDDIR}/doctrees", "{env:DOCSDIR}", "{env:BUILDDIR}/doctest", "{posargs}"]
]

0 comments on commit b8c6efb

Please sign in to comment.