Skip to content

Commit dcb3a05

Browse files
committed
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.
1 parent 6802564 commit dcb3a05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/lint/lint-python-utf8-encoding.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
export LC_ALL=C
1111
EXIT_CODE=0
12-
OUTPUT=$(git grep " open(" -- "*.py" ":(exclude)src/crc32c/" | grep -vE "encoding=.(ascii|utf8|utf-8)." | grep -vE "open\([^,]*, ['\"][^'\"]*b[^'\"]*['\"]")
12+
OUTPUT=$(git grep " open(" -- "*.py" ":(exclude)src/crc32c/" ":(exclude)src/secp256k1/" | grep -vE "encoding=.(ascii|utf8|utf-8)." | grep -vE "open\([^,]*, ['\"][^'\"]*b[^'\"]*['\"]")
1313
if [[ ${OUTPUT} != "" ]]; then
1414
echo "Python's open(...) seems to be used to open text files without explicitly"
1515
echo "specifying encoding=\"utf8\":"

0 commit comments

Comments
 (0)