12 lines
302 B
Bash
12 lines
302 B
Bash
|
|
#!/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
|