1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/bin/sh set -e venv_path=$(poetry env info -p || true) if [ "${?}" -eq 0 ]; then export PATH="${venv_path}/bin:${PATH}" fi set -x isort "${1:-.}" black "${1:-.}" flake8 "${1:-.}"