mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
34 lines
524 B
INI
34 lines
524 B
INI
[tox]
|
|
isolated_build = true
|
|
envlist =
|
|
py3
|
|
lint
|
|
|
|
[testenv]
|
|
commands =
|
|
pytest -n6 {posargs}
|
|
setenv =
|
|
# Avoid stack overflow when Rust core is built without optimizations.
|
|
RUST_MIN_STACK=8388608
|
|
passenv =
|
|
CHATMAIL_DOMAIN
|
|
deps =
|
|
pytest
|
|
pytest-timeout
|
|
pytest-xdist
|
|
|
|
[testenv:lint]
|
|
skipsdist = True
|
|
skip_install = True
|
|
deps =
|
|
ruff
|
|
black
|
|
commands =
|
|
black --quiet --check --diff src/ examples/ tests/
|
|
ruff src/ examples/ tests/
|
|
|
|
[pytest]
|
|
timeout = 300
|
|
log_cli = true
|
|
log_level = info
|