Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove pyXX prefix for lint, docs, and coverage #1092

Merged
merged 3 commits into from
Jan 24, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 19 additions & 21 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,25 @@ testdeps =

[tox]
envlist =
lint
docs
coverage
py{38,39,310,311}
py38-lint
py38-coverage
py38-docs

[testenv]
deps = {[base]testdeps}
deps =
{[base]testdeps}
pytest-cov
extras = plotly
commands = pytest {posargs}

[testenv:py38-lint]
commands = pytest \
--cov={envsitepackagesdir}/{[base]name} \
--cov-report term-missing \
--cov-fail-under=100 \
--cov-report=xml \
{posargs}

[testenv:lint]
basepython=python3.8
deps =
pycodestyle
pydocstyle
Expand All @@ -26,18 +34,8 @@ commands =
pydocstyle --match-dir='(?!test).*' {toxinidir}/neurom
pylint --rcfile=pylintrc --extension-pkg-whitelist=numpy --ignore=tests neurom

[testenv:py38-coverage]
deps =
{[base]testdeps}
pytest-cov
commands =
pytest tests \
--cov={envsitepackagesdir}/{[base]name} \
--cov-report term-missing \
--cov-fail-under=100 \
--cov-report=xml

[testenv:py38-docs]
[testenv:docs]
basepython=python3.8
eleftherioszisis marked this conversation as resolved.
Show resolved Hide resolved
changedir = doc
extras = docs
commands =
Expand All @@ -57,7 +55,7 @@ convention = google

[gh-actions]
python =
3.8: py38
3.9: py39
3.8: py38, lint
3.9: py39, docs
3.10: py310
3.11: py311
Loading