hotdog/scripts/lint

11 lines
156 B
Bash
Executable file

#!/bin/sh -e
if [ "$1" = '--fix' ]; then
set -x
black .
isort --profile black .
else
set -x
black --check .
isort --profile black --check .
fi