Skip to content

Commit

Permalink
using legacy ini
Browse files Browse the repository at this point in the history
  • Loading branch information
ESadek-MO committed Nov 22, 2024
1 parent b8c6efb commit 5c99045
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 26 deletions.
35 changes: 35 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,41 @@ known-first-party = ["tephi"]
"ERA001", # Has commented out code
]

[tool.tox]
legacy_tox_ini = """
[tox]
requires =
tox-conda
minversion = 3.15
base_python = py311
envlist=py{38,39,310,311}
[testenv]
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}
[testenv:{docs,doctests}]
description =
invoke sphinx-build to build the docs/run the doctests
setenv =
DOCSDIR = {toxinidir}/docs/source
BUILDDIR = {toxinidir}/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}
# when running the doctests, also check that any snippets in the
# docs are representative of the module output
doctests: sphinx-build -b doctest -d "{env:BUILDDIR}/doctrees" "{env:DOCSDIR}" "{env:BUILDDIR}/doctest" {posargs}
"""

[tool.ruff.lint.pydocstyle]
convention = "numpy"
26 changes: 0 additions & 26 deletions tox.toml

This file was deleted.

0 comments on commit 5c99045

Please sign in to comment.