-
Notifications
You must be signed in to change notification settings - Fork 4
/
tox.ini
50 lines (41 loc) · 1.31 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
[tox]
envlist = py27,
py34,
py35,
pep8,
coverage-report
[testenv]
deps = -r{toxinidir}/requirements/tests
commands = coverage run --parallel -m pytest {posargs:tests}
# --------------------------------------------------------------------
# Style
# --------------------------------------------------------------------
[flake8]
; But do please try to stick to 80 as a general rule
max-line-length = 99
max-complexity = 10
import-order-style = google
application-import-names = falcon_require_https
exclude = .tox,.venv,dist,docs,*.egg,.git,_build,build
[testenv:pep8]
deps = flake8
flake8-quotes
flake8-import-order
# NOTE(kgriffs): Run with py27 in case any code branches assume the
# unicode type is defined, which will cause pep8 complains in those
# running under py3.
basepython = python2.7
commands = flake8 {posargs:.}
# --------------------------------------------------------------------
# Coverage
# --------------------------------------------------------------------
[testenv:coverage-report]
skip_install = true
commands =
coverage combine
coverage html -d .coverage_html
coverage report
# --------------------------------------------------------------------
# Documentation
# --------------------------------------------------------------------
# TODO