1 # Copyright 2019 Canonical Ltd.
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
16 envlist = cover, flake8, pylint, pylint-tests
26 -rtest
-requirements.txt
29 nose2
-C
--coverage n2vc
--plugin nose2.plugins.junitxml
-s n2vc
30 coverage report --omit='*n2vc/tests*'
31 coverage html -d ./cover --omit='*n2vc/tests*'
32 coverage xml -o coverage.xml --omit='*n2vc/tests*'
40 pylint -E n2vc --ignore=tests
42 [testenv:pylint-tests]
47 -rtest
-requirements.txt
56 black
--check
--diff n2vc
67 # W503 is invalid PEP-8
71 exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,devops_stages/*,.rst
76 setuptools
-version
-command
77 commands = python3 setup.py --command-packages=stdeb.command bdist_deb