-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtox.ini
52 lines (47 loc) · 1.49 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
[tox]
minversion = 2.1
envlist = pep8
skipsdist = True
[testenv]
usedevelop = True
# tox is silly... these need to be separated by a newline....
whitelist_externals = bash
find
rm
env
setenv = VIRTUAL_ENV={envdir}
OS_TEST_PATH=./telebot/tests
LANGUAGE=en_US
LC_ALL=en_US.utf-8
passenv = http_proxy
HTTP_PROXY
https_proxy
HTTPS_PROXY
no_proxy
NO_PROXY
deps =
-r{toxinidir}/requirements.txt
commands =
find . -type f -name "*.pyc" -delete
install_command = pip install {opts} {packages}
[testenv:pep8]
basepython = python3.5
deps = {[testenv]deps}
whitelist_externals = bash
commands =
bash tools/flake8wrap.sh {posargs}
[flake8]
# E125 continuation line does not distinguish itself from next logical line
# E126 continuation line over-indented for hanging indent
# E128 continuation line under-indented for visual indent
# E129 visually indented line with same indent as next logical line
# E265 block comment should start with '# '
# H404 multi line docstring should start with a summary
# H405 multi line docstring summary not separated with an empty line
# D104 Missing docstring in public package
# H102 Apache 2.0 license header not found
# D103 Missing docstring in public function
# D100 Missing docstring in public module
ignore = E125,E126,E128,E129,E265,H404,H405,D104,D100,D102,D104,H102,D103
exclude = .venv,.git,.tox,tools,templates
show-source = true