Skip to content

Commit

Permalink
Optional dependency in tox
Browse files Browse the repository at this point in the history
  • Loading branch information
pnkraemer committed Feb 20, 2023
1 parent 361d72d commit d19eed8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,5 @@ cpu =
jax[cpu]
ci =
tox
%(cpu)s
docs =
jupyter
8 changes: 8 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ isolated_build = True
deps =
pytest
pytest-cases
extras =
cpu
commands =
pytest -v -x -Werror {posargs}

Expand All @@ -22,6 +24,8 @@ deps =
isort
pylint
mypy
extras =
cpu
commands =
black --check --diff .
nbqa black --check --diff .
Expand All @@ -35,6 +39,8 @@ commands =

[testenv:docs]
description = Build the HTML docs
extras =
cpu
deps =
-r {toxinidir}/docs/requirements-sphinx-build.txt
allowlist_externals = make
Expand All @@ -46,6 +52,8 @@ commands =

[testenv:byexample]
description = Run the snippets in the Readme
extras =
cpu
deps =
byexample
commands =
Expand Down

0 comments on commit d19eed8

Please sign in to comment.