-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Won't work yet.
- Loading branch information
Showing
3 changed files
with
109 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
[tox] | ||
requires = | ||
tox>=4 | ||
envlist = | ||
py3{8,9,10,11,12}-{full,pre} | ||
py38-min | ||
skip_missing_interpreters = true | ||
|
||
# Configuration that allows us to split tests across GitHub runners effectively | ||
[gh-actions] | ||
python = | ||
3.10: py310 | ||
3.11: py311 | ||
3.12: py312 | ||
|
||
[gh-actions:env] | ||
DEPENDS = | ||
min: min | ||
full: full | ||
pre: pre | ||
|
||
[testenv] | ||
description = Pytest with coverage | ||
labels = test | ||
pip_pre = | ||
pre: true | ||
pass_env = | ||
# getpass.getuser() sources for Windows: | ||
LOGNAME | ||
USER | ||
LNAME | ||
USERNAME | ||
# Pass user color preferences through | ||
PY_COLORS | ||
FORCE_COLOR | ||
NO_COLOR | ||
CLICOLOR | ||
CLICOLOR_FORCE | ||
extras = test | ||
commands = | ||
pytest --doctest-modules -v \ | ||
--cov bids --cov-report xml:cov.xml --cov-report term \ | ||
bids {posargs:-n auto} | ||
|
||
[testenv:docs] | ||
description = Build documentation site | ||
labels = docs | ||
allowlist_externals = make | ||
extras = doc | ||
commands = | ||
make -C doc html | ||
|
||
[testenv:spellcheck] | ||
description = Check spelling | ||
labels = check | ||
deps = | ||
codespell[toml] | ||
skip_install = true | ||
commands = | ||
codespell . {posargs} | ||
|
||
[testenv:build{,-strict}] | ||
labels = | ||
check | ||
pre-release | ||
deps = | ||
build | ||
twine | ||
skip_install = true | ||
set_env = | ||
build-strict: PYTHONWARNINGS=error | ||
commands = | ||
python -m build | ||
python -m twine check dist/* | ||
|
||
[testenv:publish] | ||
depends = build | ||
labels = release | ||
deps = | ||
twine | ||
skip_install = true | ||
commands = | ||
python -m twine upload dist/* |