-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
42 lines (37 loc) · 1.4 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
[tox]
envlist = pep8,py36,functional
skipsdist=True
[testenv]
basepython = python3.6
whitelist_externals = py.test
commands = py.test northstar_cloud/tests/unit {posargs}
deps = -rrequirements.txt
[testenv:pep8]
deps=flake8==3.5.0
yamllint
whitelist_externals = py.test
commands=flake8 {toxinidir} {posargs}
yamllint {toxinidir}
[flake8]
show-source = False
# H405: Multi line docstrings should start with a one line summary followed by
# an empty line.
# D100: Missing docstring in public module
# D101: Missing docstring in public class
# D102: Missing docstring in public method
# D103: Missing docstring in public function
# D104: Missing docstring in public package
# D105: Missing docstring in magic method
# D200: One-line docstring should fit on one line with quotes
# D202: No blank lines allowed after function docstring
# D203: 1 blank required before class docstring
# D204: 1 blank line required after class docstring
# D205: 1 blank line required between summary line and description
# D208: Docstring is over-indented
# D400: First line should end with a period
# D401: First line should be in imperative mood
ignore = H405,D100,D101,D102,D103,D104,D105,D200,D202,D203,D204,D205,D208,D400,D401
exclude = .tox,dist,doc,*.egg,build,proto,yaml,northstar_pb2_grpc.py,northstar_pb2.py
[testenv:functional]
whitelist_externals = py.test
commands = py.test northstar_cloud/tests/functional {posargs}