-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from SciKit-Surgery/72-fix-numpy-warnings-abou…
…t-scalars 72 fix numpy warnings about scalars
- Loading branch information
Showing
2 changed files
with
18 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,23 @@ | ||
# content of: tox.ini , put in same dir as setup.py | ||
[tox] | ||
envlist = py37,lint | ||
envlist = test,lint | ||
skipsdist = True | ||
requires = setuptools >= 47.1 | ||
|
||
[travis] | ||
python = | ||
3.7: py37, docs, lint | ||
|
||
[testenv] | ||
passenvs=GITHUB_* | ||
basepython=python3.10 | ||
passenv = * | ||
deps=-rrequirements-dev.txt | ||
|
||
[testenv:test] | ||
whitelist_externals=coverage,pip | ||
# See .coveragerc for list of omitted files | ||
commands = coverage erase | ||
coverage run -a --source ./sksurgerycore -m pytest | ||
coverage run -a --source ./sksurgerycore -m pytest -v -s ./tests/ | ||
coverage report -m | ||
|
||
[testenv:lint] | ||
basepython=python3.7 | ||
deps=pylint | ||
{[testenv]deps} | ||
commands=pylint --rcfile=tests/pylintrc sksurgerycore tests | ||
commands=pylint --rcfile=tests/pylintrc --ignore _version.py sksurgerycore tests | ||
|
||
[testenv:docs] | ||
basepython=python3.7 | ||
changedir = docs | ||
commands = sphinx-build -M html . build | ||
|
||
[testenv:installer] | ||
basepython=python3.7 | ||
commands=pyinstaller --onefile sksurgerycore.py --noconfirm --windowed | ||
|
||
[testenv:pip3] | ||
basepython=python3.7 | ||
changedir=pip_test | ||
skip_install=True | ||
commands = pip install {posargs} | ||
sksurgerycore --help |