forked from txomon/abot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
41 lines (35 loc) · 883 Bytes
/
setup.cfg
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
[tool:pytest]
# Add -n auto whenever the tests need parallelisation
addopts=--showlocals --cov=abot --junitxml=test-reports/junit.xml --cov-report=xml --cov-report=term-missing tests
testpaths=tests
log_print=True
log_level=DEBUG
# log_date_format=%Y%m%dT%H%M%S
# log_format=%(asctime)s:%(name)s:%(levelname)s - %(message)s
[coverage:run]
branch=True
[flake8]
#max-complexity=5
max-line-length = 120
application-import-names = abot,tests
import-order-style = smarkets
[tox:tox]
envlist = py36,py37,flake8,mypy
[testenv]
passenv=HOME
deps = pipenv
commands=
pipenv sync --dev
pipenv run py.test \
--basetemp={envtmpdir} \
{posargs}
[testenv:flake8]
passenv=HOME
commands =
pipenv sync --dev
pipenv run flake8 --show-source --statistics abot tests
[testenv:mypy]
passenv=HOME
commands =
pipenv sync --dev
pipenv run python -m mypy -p abot