-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
tox.ini
65 lines (59 loc) · 1.43 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
[tox]
envlist =
syft.test.unit
syft.jupyter
requires =
# `pip install tox tox-uv` OR `uv tool install tox --with tox-uv`
tox-uv
[testenv]
runner = uv-venv-lock-runner
with_dev = True
commands =
python --version
setenv =
UV_HTTP_TIMEOUT = 600
[testenv:syft.test.unit]
description = Syft Unit Tests
commands =
uv --version
python --version
pytest --version
python -m compileall -qf ./syftbox ./default_apps ./tests
pytest -n auto --disable-warnings \
--cov=syftbox --cov-fail-under=50 \
--cov-report term --cov-report html \
--timeout=90 --durations=5 \
tests/unit
[testenv:syft.test.integration]
description = Syft Integration Tests
commands =
uv --version
python --version
pytest --version
pytest -n auto --disable-warnings \
tests/integration -vv
[testenv:syft.test.stress]
description = Syft Stress Tests
changedir = {toxinidir}/tests/stress
commands =
locust
[testenv:syft.jupyter]
description = Jupyter Notebook with Editable Syft
allowlist_externals =
just
commands =
just run-jupyter {posargs}
[mypy]
python_version = 3.12
files = syftbox/
ignore_missing_imports = True
scripts_are_modules = True
disallow_incomplete_defs = True
no_implicit_optional = True
warn_unused_ignores = True
warn_redundant_casts = True
strict_equality = True
warn_unreachable = True
disallow_untyped_defs = True
disallow_untyped_calls = True
namespace_packages = True