This repository has been archived by the owner on Aug 23, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
tox.ini
119 lines (98 loc) · 2.63 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
[tox]
minversion = 2.3.1
envlist = py{2,26,27,3,33,34,35,36,37},pypy
[travis]
python = 3.5: py35,flake8
unignore_outcomes = True
[testenv]
alwayscopy = True
setenv =
BASEPYTHON = python3.5
TESTENVARGS = setup.py pyload
deps = {[testenv:compileall]deps}
commands = {[testenv:compileall]commands}
# Tests
[testenv:venv]
commands = {posargs}
[testenv:compileall]
skip_install = True
deps =
commands = python -m compileall -f -q {env:TESTENVARGS}
[testenv:dups]
basepython = {env:BASEPYTHON}
skip_install = True
deps = pylint
commands = pylint --disable=all --enable=duplicate-code {env:TESTENVARGS}
# Tools
[testenv:flake8]
basepython = {env:BASEPYTHON}
skip_install = True
deps = flake8
commands = flake8 {posargs} {env:TESTENVARGS}
[testenv:pylint]
basepython = {env:BASEPYTHON}
skip_install = True
deps =
.
pylint
commands = pylint {posargs} {env:TESTENVARGS}
# Packaging
[testenv:build]
basepython = {env:BASEPYTHON}
skip_install = True
deps = requests
commands =
python setup.py configure
python setup.py build
[testenv:check]
basepython = {env:BASEPYTHON}
skip_install = True
deps =
readme_renderer
requests
commands = python setup.py check -r -s
[testenv:dist]
basepython = {env:BASEPYTHON}
skip_install = True
deps =
{[testenv:build]deps}
wheel
commands = python setup.py -q sdist bdist_wheel
[testenv:upload_dist]
basepython = {env:BASEPYTHON}
skip_install = True
deps =
{[testenv:dist]deps}
twine>=1.5.0
commands =
{[testenv:dist]commands}
twine upload --skip-existing dist/*
; [testenv:upload_messages]
; basepython = {env:BASEPYTHON}
; skip_install = True
; deps =
; commands =
# Settings
[flake8]
; doctests = True
# D203: 1 blank line required before class docstring
# E116: unexpected indentation (comment)
# E302: expected 2 blank lines, found 1
# E731: do not assign a lambda expression, use a def
# F401: module imported but unused
# F403: ‘from module import *’ used; unable to detect undefined names
# F405: name may be undefined, or defined from star imports: module
# F812: list comprehension redefines ...
# H101: Use TODO(NAME)
# H202: assertRaises Exception too broad
# H301: one import per line
# H306: imports not in alphabetical order (time, os)
# H401: docstring should not start with a space
# H404: multi line docstring should start without a leading new line
# H405: multi line docstring summary not separated with an empty line
# H501: Do not use self.__dict__ for string formatting
ignore = D203,E116,E302,E731,F401,F403,F405,F812,H101,H202,H301,H306,H401,H404,H405,H501
exclude = *.py[codi],.*,__pycache__,build,dist,docs/source/conf.py,env,old
; max-complexity = 10
; show-source = True
statistics = True