forked from mozilla/mozanalysis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
46 lines (41 loc) · 1.08 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
# Tox (https://tox.readthedocs.io/) is a tool for maintaining
# multiple virtualenv environments for different python versions.
# This file is referenced when tox is invoked in bin/test or .circleci/config.yml
[tox]
envlist = py36,py38,docs,lint # CircleCI jobs override the envlist; see .circleci/config.yml
[pytest]
addopts =
-rsxX
--verbose
--black
--showlocals
--tb=native
--timeout=120
--capture=no
--cov=src/
--cov-report=term-missing
[testenv]
skipsdist = True
usedevelop = True
extras = testing
commands = pytest {posargs:tests/}
setenv = OBJC_DISABLE_INITIALIZE_FORK_SAFETY = YES
[testenv:lint]
skip_install = True
deps =
flake8
commands =
flake8 src/ tests/
[testenv:docs]
basepython = python3.8
description = invoke sphinx-build to build the HTML docs
extras =
docs
testing
commands =
# -j4: use 4 processes
# -T: show full tracebacks on exception
# -W: warnings are errors
# -b: format to build
# -d: where to cache files during the build
sphinx-build -j4 -T -W -b html -d {envtmpdir}/doctrees docs docs/_build/html