blob: a107be8bdd42ad970c75789a1dd1c8dd0ea96cc6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/usr/bin/env bash
set -xu
target=${1:?}
instructions=$(mktemp)
echo "Fix the following lint errors, or silence them with a `# noqa:` comment if they aren't problematic:" >> "$instructions"
if lint -f "$target" >> "$instructions" 2>&1
then
echo "no bad lints"
else
aider --yes --message-file "$instructions" "$target"
fi
|