mirror of
https://github.com/luxfi/torus-ml.git
synced 2026-10-30 15:15:23 +00:00
34 lines
706 B
Bash
Executable File
34 lines
706 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
EXTRA_OPTIONS=""
|
|
|
|
while [ -n "$1" ]
|
|
do
|
|
case "$1" in
|
|
"--open" )
|
|
EXTRA_OPTIONS="$EXTRA_OPTIONS $1"
|
|
;;
|
|
|
|
*)
|
|
echo "Unknown param : $1"
|
|
exit 1
|
|
;;
|
|
esac
|
|
shift
|
|
done
|
|
|
|
# Check documentation
|
|
MD_FILES=$(find ./*.md use_case_examples docs -type f -name "*.md")
|
|
|
|
# shellcheck disable=SC2086
|
|
poetry run python script/doc_utils/check_forbidden_words.py --files $MD_FILES $EXTRA_OPTIONS
|
|
|
|
# Check sources
|
|
PY_FILES=$(find ./*.py src benchmarks use_case_examples docs -type f -name "*.py")
|
|
|
|
# shellcheck disable=SC2086
|
|
poetry run python script/doc_utils/check_forbidden_words.py --files $PY_FILES $EXTRA_OPTIONS
|
|
|