summaryrefslogtreecommitdiff
path: root/misc/hooks
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2022-06-11 00:16:05 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2022-06-11 00:19:36 +0200
commitd45351f413e8a66d569556f6755a7ced5e26160e (patch)
tree6e9da905902fb493d5ac2535e90b4556ee4a7694 /misc/hooks
parentb9375ea7fc135f5468dcfb8c80b51a945ac14155 (diff)
makerst: Print colored output for easier visual grepping
This is automatically enabled on all platforms including Windows 10 and later, whenever a TTY environment is detected. In non-TTY environments such as CI, this can be forced using the `--color` command line argument.
Diffstat (limited to 'misc/hooks')
-rwxr-xr-xmisc/hooks/pre-commit-make-rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/hooks/pre-commit-make-rst b/misc/hooks/pre-commit-make-rst
index 38b397c494..7d115f1d13 100755
--- a/misc/hooks/pre-commit-make-rst
+++ b/misc/hooks/pre-commit-make-rst
@@ -9,4 +9,4 @@ if [[ "$py_ver" != "3" ]]; then
PYTHON+=3
fi
-$PYTHON doc/tools/make_rst.py doc/classes modules --dry-run
+$PYTHON doc/tools/make_rst.py doc/classes modules --dry-run --color