[VOL-5297] Install module pre-commit for linting
Minor patch submitted for side effects.
Launch a 1c-1g AWS instance for debugging.
.pre-commit-config.yaml
-----------------------
o Update base pre-commit script config.
o Add doc8 and minor rst linting hooks.
howto/release/voltctl/release.rst
overview/contributing/copyright.rst
overview/contributing/patch_followup.rst
----------------------------------------
o Source edits and cleanups used to force a job run.
Signed-off-by: Joey Armstrong <jarmstrong@linuxfoundation.org>
Change-Id: Ie3243b953c6b6e9c0d31e0080b2ebbe1d2b91c0f
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index b9bf768..d764883 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -9,6 +9,9 @@
# - Exclusions and bulk cleanup necessitate per-repo custom configs.
# - Dynamically generate this config file from common and custom
# -----------------------------------------------------------------------
+# [HOOKS: disabled]
+# - reuse
+# -----------------------------------------------------------------------
# -----------------------------------------------------------------------
# Copyright 2024 Open Networking Foundation Contributors
@@ -60,9 +63,10 @@
## -----------------------------------------------------------------------
## [SOURCE] REUSE License Checking
## -----------------------------------------------------------------------
-# - repo: https://github.com/ansys/pre-commit-hooks
-# rev: v0.2.9
-# hooks:
+# - repo: https://github.com/fsfe/reuse-tool
+# rev: v3.0.2
+# hooks:
+# - id: reuse
# - id: add-license-headers
# args:
# - --custom_copyright=custom copyright phrase
@@ -74,15 +78,23 @@
## -----------------------------------------------------------------------
## [SOURCE] Python
## -----------------------------------------------------------------------
+
# - repo: https://github.com/psf/black
# rev: 22.10.0
# hooks:
# - id: black
-# - repo: https://github.com/PyCQA/doc8
-# rev: v1.1.1
-# hooks:
-# - id: doc8
+ - repo: https://github.com/PyCQA/doc8
+ rev: v1.1.1
+ hooks:
+ - id: doc8
+
+ - repo: https://github.com/pre-commit/pygrep-hooks
+ rev: v1.10.0
+ hooks:
+ - id: rst-backticks
+ - id: rst-directive-colons
+ - id: rst-inline-touching-normal
# -------------------------------------------------------------------
# https://docs.python.org/3/library/re.html#regular-expression-syntax