We have to be super careful adding any new hardcoded
regstistry names to the code base. Let's make this an informed
decision next time.
Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
(cherry picked from commit
0fe2e54db774271e4fc18b45aba36b66cbc71779)
[testenv:flake8]
basepython = python3
+allowlist_externals = bash
deps =
flake8
flake8-quotes
commands =
flake8 --config=tox.ini {posargs:cephadm}
+ bash -c "test $(grep 'docker.io' cephadm | wc -l) == 11"
basepython = python3
deps =
flake8
+allowlist_externals = bash
modules =
cephadm
cli_api
commands =
flake8 --config=tox.ini {posargs} \
{posargs:{[testenv:flake8]modules}}
+ bash -c 'test $(git ls-files cephadm | grep ".py$" | grep -v tests | xargs grep "docker.io" | wc -l) == 13'
[testenv:jinjalint]
basepython = python3