forked from tableau/altimeter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
60 lines (46 loc) · 1.17 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
[tox]
envlist = formatting,typing,lint,test,docs
basepython = python3.8
[testenv]
whitelist_externals = /bin/bash
[testenv:formatting]
deps =
black==19.10b0
click==8.0.4
commands =
black -l 100 --check altimeter bin tests
[testenv:typing]
deps =
mypy==0.941
types-requests==2.27.13
types-toml==0.10.4
commands =
mypy --incremental --ignore-missing-imports --disallow-untyped-defs altimeter bin
[testenv:lint]
deps =
-r services/qj/requirements.txt
pylint>=2.6.0,<3
commands =
pylint -j 0 --fail-under=9 altimeter bin
[testenv:test]
deps =
-r services/qj/requirements.txt
-r tests/requirements.txt
setenv =
DB_USER=postgres
DB_PASSWORD=
DB_NAME=qj
DB_HOST=127.0.0.1
commands_pre =
bash ci/db_start.sh
commands =
pytest --ignore=altimeter/qj/alembic/env.py --cov="altimeter" --cov-report=term-missing --cov-fail-under=60 --cov-branch --doctest-modules "altimeter" "tests"
commands_post =
bash ci/db_stop.sh
[testenv:docs]
deps =
-r doc/requirements.txt
-r services/qj/requirements.txt
commands =
sphinx-apidoc -f -o doc/source altimeter altimeter/qj/alembic
sphinx-build doc/source doc/html -E -W