-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
53 lines (45 loc) · 990 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
[tox]
skipdist = true
envlist = py3, flake8
[testenv]
basepython = python3
[testenv:py3]
deps =
Flask-Testing
mock
pytest
coverage
pytest-cov
factory_boy
blinker
passenv = TRAVIS
commands = pytest --cov=qstode --cov-config .coveragerc {posargs}
[testenv:flake8]
skip_install = true
deps =
flake8
flake8-colors
flake8-builtins
flake8-bugbear
# black
commands =
flake8 qstode/ setup.py
# black --check --diff -l 100 qstode/ setup.py
[flake8]
exclude = .tox/*, .git/*, build/*, venv/*
max-line-length = 100
format = ${cyan}%(path)s${reset}:${yellow_bold}%(row)d${reset}:${green_bold}%(col)d${reset}: ${red_bold}%(code)s${reset} %(text)s
[testenv:black]
skip_install = true
deps = black
commands = black -l 100 qstode setup.py
[testenv:bandit]
skip_install = true
deps = bandit
commands = bandit -r qstode/ -c .bandit.yml
[testenv:mypy]
skip_install = true
deps = mypy
commands = mypy qstode/
[pytest]
norecursedirs = .tox