#!/usr/bin/env bash

# This script is just here to run formatters in a standard
# single-point-of-truth way. Feel free to run it manually instead.

set -e

ARGS=( "${@:-.}" )

# run from root of current project
cd "$(dirname "$(dirname "$(realpath "$0")")")" || exit 1

# run formatters in a row
"dev/run-in-venv" python -m isort "${ARGS[@]}"
"dev/run-in-venv" python -m black "${ARGS[@]}"
