From d45351f413e8a66d569556f6755a7ced5e26160e Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sat, 11 Jun 2022 00:16:05 +0200 Subject: 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. --- misc/hooks/pre-commit-make-rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'misc/hooks') 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 -- cgit v1.2.3