[VOL-5291] - Add tox debugging for gerrit:35128
Makefile
--------
o Invoke tox -vvv to run at verbosity level (4=DEBUG).
setup.py
requirements.txt
----------------
o Add a proper copyright notice for lint license checking.
tox.ini
-------
o Added a see-also section with documentation urls.
.pre-commit-config.yaml
-----------------------
o Add pre-commit tool config file.
o Cleanup some minor linting complaints.
Change-Id: I60c6ba1e68f3f45502fe1629642b3afbc54737a0
diff --git a/Makefile b/Makefile
index 7ed7d80..5cbd2b9 100755
--- a/Makefile
+++ b/Makefile
@@ -139,7 +139,7 @@
## -----------------------------------------------------------------------
## Intent:
## -----------------------------------------------------------------------
-python-build: setup.py python-protos
+python-build: setup.py python-protos
$(call banner-enter,target $@)
@@ -149,12 +149,20 @@
$(call banner-leave,target $@)
## -----------------------------------------------------------------------
-## Intent:
+## Intent: Invoke tox to install a python interpreter then run tests.
+## -----------------------------------------------------------------------
+## See Also:
+## o https://tox.wiki/en/latest/cli_interface.html#tox-verbosity
+## every -v increases, every -q decreases verbosity level,
+## default WARNING (level:2)
+## map 0=CRITICAL|1=ERROR|2=WARNING|3=INFO|4=DEBUG|5=NOTSET
## -----------------------------------------------------------------------
python-test: tox.ini setup.py python-protos
$(call banner-enter,target $@)
+
$(activate) && python --version
- tox
+ tox -vvv
+
$(call banner-leave,target $@)
## -----------------------------------------------------------------------
@@ -323,4 +331,3 @@
$(call banner-leave,Target $@)
# [EOF]
-