[VOL-5297] Add more pre-commit linters.
.pre-commit-config.yaml
-----------------------
o Document where the latest config file can be copied from.
o [todo] install this as a git submodule -- lf/pre-commit.
bin/setup.sh
------------
o Greatly simplify the installer.
o No longer need to preserve makefiles/ when transitioning.
o Git submodule installed into lf/onf-make/ so simply
mkdir and git submodule <path>.
Makefile
--------
o Added convenience makefile target view used to
pre-screening README.md markdown edits before publishing
to the repository for final rendering/browser viewing.
Signed-off-by: Joey Armstrong <jarmstrong@linuxfoundation.org>
Change-Id: I946336e37253be2a6f675ed47c01005edf27c1ab
diff --git a/makefiles/commands/pre-commit/pre-commit.mk b/makefiles/commands/pre-commit/pre-commit.mk
index bcb416f..0bb075d 100644
--- a/makefiles/commands/pre-commit/pre-commit.mk
+++ b/makefiles/commands/pre-commit/pre-commit.mk
@@ -23,8 +23,9 @@
## -----------------------------------------------------------------------
## Intent: Invoke the pre-commit command
## -----------------------------------------------------------------------
-pre-commit : tox-version
- $(activate) && tox $(tox-args)
+.PHONY: pre-commit
+pre-commit : venv
+ $(activate) && pre-commit
## -----------------------------------------------------------------------
## -----------------------------------------------------------------------