-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
58 lines (52 loc) · 1.11 KB
/
tox.ini
File metadata and controls
58 lines (52 loc) · 1.11 KB
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 =
unittest
flake8
black
safety
bandit
isort
skipsdist =
true
[testenv]
; config items in this section are inherited by all children
basepython = python3.8
changedir = {toxinidir}
usedevelop = false
passenv = LANG PIP_LANG DB_USER DATABASE_USER DATABASE_HOST DATABASE_PASSWORD
setenv =
ENV = tests
COUNTRY = AU
PYTHONDONTWRITEBYTECODE = 1
PYTHONPATH = {toxinidir}:{toxinidir}/deferit:/var/runtime
PYTHONUNBUFFERED = 1
PYTHONWARNINGS = d
; required for running parallel tests on MacOS
OBJC_DISABLE_INITIALIZE_FORK_SAFETY = YES
[testenv:unittest]
commands =
python -m unittest
deps =
-r {toxinidir}/requirements.txt
[testenv:flake8]
commands =
flake8 controllers ticker
deps =
flake8
[testenv:black]
commands =
black controllers ticker --check --line-length=119
deps =
-r {toxinidir}/requirements.txt
[testenv:bandit]
commands =
bandit -r controllers ticker --skip B101,B608
deps =
bandit
[testenv:isort]
commands =
isort controllers ticker --check-only --diff --profile black -l 119
deps =
isort
usedevelop =
false