Add cephadmlib to flake8 checks.
Use `git ls-files` like src/pybind/mgr/tox.ini does for listing certain
python files.
Signed-off-by: John Mulligan <jmulligan@redhat.com>
Pair-programmed-with: Adam King <adking@redhat.com>
Co-authored-by: Adam King <adking@redhat.com>
flake8 == 5.0.4
flake8-quotes
commands =
- flake8 --config=tox.ini {posargs:cephadm.py}
- bash -c "test $(grep -c 'docker.io' cephadm.py) == 11"
+ flake8 --config=tox.ini {posargs:cephadm.py cephadmlib}
+ bash -c 'test $(git ls-files 'cephadm.py' 'cephadmlib/*.py' | xargs grep "docker.io" | wc -l) == 11'
# Downstream distributions may choose to alter this "docker.io" number,
# to make sure no new references to docker.io are creeping in unnoticed.