-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
58 lines (41 loc) · 981 Bytes
/
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
[tox]
envlist =
py3, tests
; docs-{linux, win32}
skipsdist = true
[testenv]
allowlist_externals = *
isolated_build = true
platform =
linux: linux
win32: win32
passenv = *
basepython = python3
recreate = false
deps = poetry
[testenv:tests]
commands =
poetry install --with dev
poetry run coverage run --source=. --omit=tracker/main.py -m pytest
poetry run coverage report -m --fail-under=90
[testenv:coverage]
commands =
poetry install --with dev
poetry run coverage xml -o coverage.xml
[testenv:runserver]
commands = poetry run fastapi dev tracker/main.py
; [testenv:docs-win32]
; passenv = *
; allowlist_externals = *
; commands =
; poetry install --with docs
; .\docs\\make.bat clean
; .\docs\\make.bat html
; [testenv:docs-linux]
; allowlist_externals = *
; changedir = docs
; commands =
; poetry install --with docs
; poetry run sphinx-apidoc -f -o source/ ../ ../tests/
; make clean
; make html