defl/scripts/clean.sh

12 lines
302 B
Bash
Raw Permalink Normal View History

2024-09-11 11:14:03 -04:00
#!/usr/bin/env bash
set -o errexit -o nounset -o pipefail
scriptDir="$(cd "$(dirname $(readlink -f "${BASH_SOURCE[0]}"))" && pwd)"
cd "$scriptDir/../defl/"
for i in *.py; do
if ! echo $i | grep _typing_.py; then
(set -x && autoflake --in-place --remove-unused-variables "$i")
fi
done