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
|
*.egg-info
|
||||||
build
|
build
|
||||||
tracing_database.json
|
tracing_database.json
|
||||||
|
.tox
|
||||||
|
|
|
||||||
1
.vscode/settings.json
vendored
1
.vscode/settings.json
vendored
|
|
@ -68,6 +68,7 @@
|
||||||
"**/.pytest_cache": true,
|
"**/.pytest_cache": true,
|
||||||
"**/*.egg-info": true,
|
"**/*.egg-info": true,
|
||||||
"**/*.cache": true,
|
"**/*.cache": true,
|
||||||
|
"**/*.tox": true,
|
||||||
"**/tracing_database.json": true
|
"**/tracing_database.json": true
|
||||||
},
|
},
|
||||||
"notebook.output.textLineLimit": 400,
|
"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",
|
"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": {
|
"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",
|
"group": "test",
|
||||||
"presentation": {
|
"presentation": {
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ classifiers = [
|
||||||
"Natural Language :: English",
|
"Natural Language :: English",
|
||||||
]
|
]
|
||||||
keywords = ["SE4ML", "MLOps", "AI engineering", "general", "robust", "end-to-end", "automated", "trustworthy", "ai", "deployment"]
|
keywords = ["SE4ML", "MLOps", "AI engineering", "general", "robust", "end-to-end", "automated", "trustworthy", "ai", "deployment"]
|
||||||
requires-python = ">= 3.8"
|
requires-python = ">= 3.7"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"scikit-learn",
|
"scikit-learn",
|
||||||
"matplotlib",
|
"matplotlib",
|
||||||
|
|
@ -43,8 +43,7 @@ dependencies = [
|
||||||
"typeguard >= 2.10.0",
|
"typeguard >= 2.10.0",
|
||||||
"pymongo >= 4.0.0",
|
"pymongo >= 4.0.0",
|
||||||
"dill >= 0.3.5.0",
|
"dill >= 0.3.5.0",
|
||||||
'tqdm',
|
"tqdm",
|
||||||
"async_lru >= 1.0.0",
|
|
||||||
"httpx >= 0.20.0",
|
"httpx >= 0.20.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
@ -61,9 +60,9 @@ dev = [
|
||||||
"black[jupyter]",
|
"black[jupyter]",
|
||||||
"mypy",
|
"mypy",
|
||||||
"flake8",
|
"flake8",
|
||||||
|
"tox",
|
||||||
"pytest",
|
"pytest",
|
||||||
"pytest-cov",
|
"pytest-cov",
|
||||||
"pytest-subtests",
|
|
||||||
"pytest-asyncio",
|
"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