28 lines
495 B
INI
28 lines
495 B
INI
[tox]
|
|
envlist = pre-commit,test
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/godo.js/
|
|
|
|
[testenv]
|
|
whitelist_externals =
|
|
/bin/mv
|
|
npm
|
|
npx
|
|
bash
|
|
setenv =
|
|
PYTHONPATH=.
|
|
SETUPTOOLS_USE_DISTUTILS=stdlib
|
|
|
|
[testenv:pre-commit]
|
|
basepython = python3
|
|
deps =
|
|
pre-commit
|
|
commands =
|
|
pre-commit run --all-files --show-diff-on-failure
|
|
|
|
[testenv:test]
|
|
deps = nodeenv
|
|
install_command = bash setup-vitest.sh {packages}
|
|
setenv =
|
|
NODE_PATH={envdir}/lib/node_modules
|
|
commands = npx vitest --run
|