Currently this is not checked/required but we'd like to use a consistent
formatting tool for the new files in cephadmlib. This let's us do so
incrementally.
Signed-off-by: John Mulligan <jmulligan@redhat.com>
Pair-programmed-with: Adam King <adking@redhat.com>
Co-authored-by: Adam King <adking@redhat.com>
pytest-cov
commands =
pytest -v --cov=cephadm --cov-report=term-missing --cov-report=html {posargs}
+
+[testenv:check-black]
+deps =
+ black>=23,<24
+commands =
+ black --check -l78 -t py36 --skip-string-normalization -v cephadmlib/
+
+[testenv:format-black]
+deps =
+ black>=23,<24
+commands =
+ black -q -l78 -t py36 --skip-string-normalization cephadmlib/