Add script to generate deterministic samples and hashes

This commit is contained in:
Michael Hansen 2022-04-20 11:43:15 -04:00
commit b446579e4f
9 changed files with 595 additions and 2 deletions

View file

@ -23,6 +23,26 @@ set -eo pipefail
# Directory of *this* script
this_dir="$( cd "$( dirname "$0" )" && pwd )"
# Path to virtual environment
: "${venv:=${base_dir}/.venv}"
if [ -d "${venv}" ]; then
# Activate virtual environment if available
source "${venv}/bin/activate"
fi
python_files=("${this_dir}/tests"/*.py)
# Format code
black "${python_files[@]}"
isort "${python_files[@]}"
# Check
flake8 "${python_files[@]}"
pylint "${python_files[@]}"
mypy "${python_files[@]}"
# Check submodules
script_name='check.sh'
find "${this_dir}" -mindepth 2 -maxdepth 2 -name "${script_name}" -type f | \