projects
/
osm
/
devops.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Separate cluster addons installation (openebs, metallb, cert-mgr) from install_kubead...
[osm/devops.git]
/
installers
/
charm
/
osm-ro
/
tox.ini
diff --git
a/installers/charm/osm-ro/tox.ini
b/installers/charm/osm-ro/tox.ini
index
b5f809e
..
c6cc629
100644
(file)
--- a/
installers/charm/osm-ro/tox.ini
+++ b/
installers/charm/osm-ro/tox.ini
@@
-21,15
+21,16
@@
[tox]
skipsdist=True
skip_missing_interpreters = True
[tox]
skipsdist=True
skip_missing_interpreters = True
-envlist = lint, unit
+envlist = lint, unit
, integration
[vars]
src_path = {toxinidir}/src/
tst_path = {toxinidir}/tests/
lib_path = {toxinidir}/lib/charms/osm_ro
[vars]
src_path = {toxinidir}/src/
tst_path = {toxinidir}/tests/
lib_path = {toxinidir}/lib/charms/osm_ro
-all_path = {[vars]src_path} {[vars]tst_path}
+all_path = {[vars]src_path} {[vars]tst_path}
[testenv]
[testenv]
+basepython = python3.8
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/lib:{[vars]src_path}
PYTHONBREAKPOINT=ipdb.set_trace
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/lib:{[vars]src_path}
PYTHONBREAKPOINT=ipdb.set_trace
@@
-52,9
+53,8
@@
commands =
description = Check code against coding style standards
deps =
black
description = Check code against coding style standards
deps =
black
- flake8
+ flake8
==4.0.1
flake8-docstrings
flake8-docstrings
- flake8-copyright
flake8-builtins
pyproject-flake8
pep8-naming
flake8-builtins
pyproject-flake8
pep8-naming
@@
-62,10
+62,10
@@
deps =
codespell
commands =
# uncomment the following line if this charm owns a lib
codespell
commands =
# uncomment the following line if this charm owns a lib
- codespell {[vars]lib_path}
- codespell {toxinidir}
/.
--skip {toxinidir}/.git --skip {toxinidir}/.tox \
+ codespell {[vars]lib_path}
--ignore-words-list=Ro,RO,ro
+ codespell {toxinidir} --skip {toxinidir}/.git --skip {toxinidir}/.tox \
--skip {toxinidir}/build --skip {toxinidir}/lib --skip {toxinidir}/venv \
--skip {toxinidir}/build --skip {toxinidir}/lib --skip {toxinidir}/venv \
- --skip {toxinidir}/.mypy_cache --skip {toxinidir}/icon.svg
+ --skip {toxinidir}/.mypy_cache --skip {toxinidir}/icon.svg
--ignore-words-list=Ro,RO,ro
# pflake8 wrapper supports config from pyproject.toml
pflake8 {[vars]all_path}
isort --check-only --diff {[vars]all_path}
# pflake8 wrapper supports config from pyproject.toml
pflake8 {[vars]all_path}
isort --check-only --diff {[vars]all_path}
@@
-88,8
+88,8
@@
commands =
description = Run integration tests
deps =
pytest
description = Run integration tests
deps =
pytest
- juju
+ juju
<3
pytest-operator
-r{toxinidir}/requirements.txt
commands =
pytest-operator
-r{toxinidir}/requirements.txt
commands =
- pytest -v --tb native --ignore={[vars]tst_path}unit --log-cli-level=INFO -s {posargs}
+ pytest -v --tb native --ignore={[vars]tst_path}unit --log-cli-level=INFO -s {posargs} --cloud microk8s
\ No newline at end of file