Setup tox
This commit is contained in:
parent
18c6ba62bb
commit
55f1599a7a
5 changed files with 37 additions and 7 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -9,3 +9,4 @@ __pycache__
|
|||
*.egg-info
|
||||
build
|
||||
tracing_database.json
|
||||
.tox
|
||||
|
|
|
|||
1
.vscode/settings.json
vendored
1
.vscode/settings.json
vendored
|
|
@ -68,6 +68,7 @@
|
|||
"**/.pytest_cache": true,
|
||||
"**/*.egg-info": true,
|
||||
"**/*.cache": true,
|
||||
"**/*.tox": true,
|
||||
"**/tracing_database.json": true
|
||||
},
|
||||
"notebook.output.textLineLimit": 400,
|
||||
|
|
|
|||
22
.vscode/tasks.json
vendored
22
.vscode/tasks.json
vendored
|
|
@ -18,11 +18,27 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"label": "Test",
|
||||
"label": "Test (quick)",
|
||||
"type": "shell",
|
||||
"command": "source .env/bin/activate && python3 -m pytest . --doctest-modules",
|
||||
"command": "source .env/bin/activate && python3 -m pytest . --doctest-modules --asyncio-mode=strict",
|
||||
"windows": {
|
||||
"command": ".env\\bin\\activate.bat; python3 -m pytest . --doctest-modules"
|
||||
"command": ".env\\bin\\activate.bat; python3 -m pytest . --doctest-modules --asyncio-mode=strict"
|
||||
},
|
||||
"group": "test",
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "new"
|
||||
},
|
||||
"options": {
|
||||
"cwd": "${workspaceFolder}"
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Test (all Python versions)",
|
||||
"type": "shell",
|
||||
"command": "source .env/bin/activate && python3 -m tox",
|
||||
"windows": {
|
||||
"command": ".env\\bin\\activate.bat; python3 -m tox"
|
||||
},
|
||||
"group": "test",
|
||||
"presentation": {
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ classifiers = [
|
|||
"Natural Language :: English",
|
||||
]
|
||||
keywords = ["SE4ML", "MLOps", "AI engineering", "general", "robust", "end-to-end", "automated", "trustworthy", "ai", "deployment"]
|
||||
requires-python = ">= 3.8"
|
||||
requires-python = ">= 3.7"
|
||||
dependencies = [
|
||||
"scikit-learn",
|
||||
"matplotlib",
|
||||
|
|
@ -43,8 +43,7 @@ dependencies = [
|
|||
"typeguard >= 2.10.0",
|
||||
"pymongo >= 4.0.0",
|
||||
"dill >= 0.3.5.0",
|
||||
'tqdm',
|
||||
"async_lru >= 1.0.0",
|
||||
"tqdm",
|
||||
"httpx >= 0.20.0",
|
||||
]
|
||||
|
||||
|
|
@ -61,9 +60,9 @@ dev = [
|
|||
"black[jupyter]",
|
||||
"mypy",
|
||||
"flake8",
|
||||
"tox",
|
||||
"pytest",
|
||||
"pytest-cov",
|
||||
"pytest-subtests",
|
||||
"pytest-asyncio",
|
||||
]
|
||||
|
||||
|
|
|
|||
13
tox.ini
Normal file
13
tox.ini
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
[tox]
|
||||
envlist = py37,py38,py39,py310
|
||||
isolated_build = True
|
||||
|
||||
[testenv]
|
||||
alwayscopy = True
|
||||
setenv =
|
||||
PY_IGNORE_IMPORTMISMATCH = 1
|
||||
deps =
|
||||
pytest
|
||||
pytest-cov
|
||||
pytest-asyncio
|
||||
commands = pytest --doctest-modules --asyncio-mode=strict
|
||||
Loading…
Add table
Add a link
Reference in a new issue