-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
54 lines (45 loc) · 1.12 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
;tox documentation: https://testrun.org/tox/latest/config.html
[tox]
; No plans to ever work with python < 3.5, depend on asyncio
; Ideally install python versions with pyenv and set to pyenv local
envlist = py, pylint, flake8
skip_missing_interpreters = True
[testenv]
commands =
python setup.py deps --yes
python -m pytest {posargs}
[testenv:flake8]
commands =
python setup.py deps --yes
- python -m flake8
[testenv:pylint]
commands =
python setup.py deps --yes
- python -m pylint --rcfile=.pylintrc cog cogdb tests
[testenv:coverage]
setenv =
ALL_TESTS = True
passenv =
TRAVIS
TRAVIS_BRANCH
TRAVIS_JOB_ID
commands =
python setup.py deps --yes
python -m pytest --cov=cog --cov=cogdb
coverage report
[flake8]
exclude = .tox,*.egg*,build,docs,dist,venv,z_scratch
; Ignore some warnings, comma list
ignore = F403, W503
max-complexity = 10
max-line-length = 125
statistics = 1
[pep8]
exclude = .tox,*.egg*,build,docs,dist,venv
; Ignore some warnings, comma list
;ignore =
statistics = 1
[pytest]
addopts = -s -vvvvv -rEfsxX --showlocals
norecursedirs = .eggs .git .tox build dist venv py3
;vim:set et sw=2 ts=4: