From dcb3a05a44393cdbebeae642c8dc27816eb84df7 Mon Sep 17 00:00:00 2001 From: Byron Hambly Date: Thu, 27 Jul 2023 16:04:07 +0200 Subject: [PATCH] lint: exclude src/secp256k1 from lint-python-utf8-encoding.sh It doesn't make sense to use this upstream linter for secp256k1-zkp. Currently this only affects musig2-vectors.py. --- test/lint/lint-python-utf8-encoding.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/lint/lint-python-utf8-encoding.sh b/test/lint/lint-python-utf8-encoding.sh index 6e5b18fc23..7e5220715e 100755 --- a/test/lint/lint-python-utf8-encoding.sh +++ b/test/lint/lint-python-utf8-encoding.sh @@ -9,7 +9,7 @@ export LC_ALL=C EXIT_CODE=0 -OUTPUT=$(git grep " open(" -- "*.py" ":(exclude)src/crc32c/" | grep -vE "encoding=.(ascii|utf8|utf-8)." | grep -vE "open\([^,]*, ['\"][^'\"]*b[^'\"]*['\"]") +OUTPUT=$(git grep " open(" -- "*.py" ":(exclude)src/crc32c/" ":(exclude)src/secp256k1/" | grep -vE "encoding=.(ascii|utf8|utf-8)." | grep -vE "open\([^,]*, ['\"][^'\"]*b[^'\"]*['\"]") if [[ ${OUTPUT} != "" ]]; then echo "Python's open(...) seems to be used to open text files without explicitly" echo "specifying encoding=\"utf8\":"