Skip to content

Commit

Permalink
Remove pyXX prefix for lint, docs, and coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
eleftherioszisis committed Jan 24, 2024
1 parent a6d15b9 commit 9863676
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 21 deletions.
2 changes: 1 addition & 1 deletion pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ ignore-docstrings=yes
# (useful for modules/projects where namespaces are manipulated during runtime
# and thus existing member attributes cannot be deduced by static analysis. It
# supports qualified module names, as well as Unix pattern matching.
ignored-modules=numpy,numpy.*,scipy.stats,scipy.spatial
ignored-modules=numpy,numpy.*,scipy,scipy.spatial,scipy.stats,scipy.spatial.qhull
38 changes: 18 additions & 20 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
changedir = doc
extras = docs
commands =
Expand All @@ -57,7 +55,7 @@ convention = google

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

0 comments on commit 9863676

Please sign in to comment.