-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.cfg
48 lines (41 loc) · 1006 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
42
43
44
45
46
47
48
[tool:pytest]
# Add `-n auto` whenever you want tests with parallelisation
# Add `--pdb` to debug when an exception is raised
# Add `--pdbcls ipdb.__main__:debugger_cls` to use ipdb to debug
addopts=
--showlocals
--cov=mosbot
--junitxml=test-reports/junit.xml
--cov-report=xml
--cov-report=term-missing
testpaths=tests
log_print=True
log_level=DEBUG
# log_format=%(asctime)s:%(name)s:%(levelname)s - %(message)s
# log_date_format=%Y%m%dT%H%M%S
# log_cli=True
[coverage:run]
branch=True
[flake8]
#max-complexity=5
max-line-length = 120
application-import-names = mosbot,tests
import-order-style = smarkets
ignore = D100,D104,E126,W606
per-file-ignores =
tests/**/*.py: D10
[tox:tox]
envlist = py37,flake8
[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 mosbot tests