Initial commit
This commit is contained in:
commit
38f1f4e126
18 changed files with 746 additions and 0 deletions
27
scripts/check-code.sh
Executable file
27
scripts/check-code.sh
Executable file
|
|
@ -0,0 +1,27 @@
|
|||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
# Directory of *this* script
|
||||
this_dir="$( cd "$( dirname "$0" )" && pwd )"
|
||||
src_dir="$(realpath "${this_dir}/..")"
|
||||
|
||||
venv="${src_dir}/.venv"
|
||||
if [[ -d "${venv}" ]]; then
|
||||
source "${venv}/bin/activate"
|
||||
fi
|
||||
|
||||
python_files=("${src_dir}/espeak_phonemizer/"*.py)
|
||||
|
||||
export PYTHONPATH="${src_dir}"
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
flake8 "${python_files[@]}"
|
||||
pylint "${python_files[@]}"
|
||||
mypy "${python_files[@]}"
|
||||
black --check "${python_files[@]}"
|
||||
isort --check-only "${python_files[@]}"
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
echo "OK"
|
||||
Loading…
Add table
Add a link
Reference in a new issue