mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
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.
This commit is contained in:
parent
6802564be5
commit
dcb3a05a44
1 changed files with 1 additions and 1 deletions
|
|
@ -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\":"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue