Adds skipdist back
[osm/N2VC.git] / tox.ini
1 # Copyright 2019 Canonical Ltd.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 [tox]
16 envlist = cover, flake8, pylint
17 skipsdist=True
18
19 [testenv]
20
21 [testenv:cover]
22 basepython = python3
23 deps =
24 nose2
25 -rrequirements.txt
26 -rtest-requirements.txt
27 commands =
28 coverage erase
29 nose2 -C --coverage n2vc --plugin nose2.plugins.junitxml -s n2vc
30 coverage report --omit='*tests*'
31 coverage html -d ./cover --omit='*tests*'
32 coverage xml -o coverage.xml --omit='*tests*'
33
34 [testenv:pylint]
35 basepython = python3
36 deps =
37 pylint
38 -rrequirements.txt
39 commands =
40 pylint -E n2vc
41
42 [testenv:black]
43 basepython = python3
44 deps =
45 black
46 commands =
47 black --check --diff n2vc
48
49 [testenv:flake8]
50 basepython = python3
51 deps =
52 flake8
53 -rrequirements.txt
54 commands =
55 flake8 n2vc
56
57 [flake8]
58 # W503 is invalid PEP-8
59 max-line-length = 88
60 show-source = True
61 ignore = W503,E203
62 exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,devops_stages/*,.rst
63
64 [testenv:build]
65 deps =
66 stdeb
67 setuptools-version-command
68 commands = python3 setup.py --command-packages=stdeb.command bdist_deb