1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00

test: skip symlinked English folder and optimise the script (#11537)

* test: skip symlinked English folder and optimise the script

* Update test.sh

* Update test.sh

* Update test.sh

* Update test.sh

* Update test.sh

* Update test.sh

* Update test.sh
This commit is contained in:
Sebastiaan Speck 2023-11-18 11:48:52 +01:00 committed by GitHub
parent c544ed68bd
commit 4547f49a08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,11 +62,13 @@ function run_tests {
find pages* -name '*.md' -exec markdownlint {} +
tldr-lint ./pages
for f in ./pages.*; do
if [[ $f == *zh* || $f == *zh_TW* ]]; then
tldr-lint --ignore "TLDR003,TLDR004,TLDR005,TLDR015,TLDR104" "${f}"
else
tldr-lint --ignore "TLDR003,TLDR004,TLDR015,TLDR104" "${f}"
checks="TLDR003,TLDR004,TLDR015,TLDR104"
if [[ -L $f ]]; then
continue
elif [[ $f == *zh* || $f == *zh_TW* ]]; then
checks+=",TLDR005"
fi
tldr-lint --ignore $checks "${f}"
done
run_black
run_flake8