Skip to content

Commit 9cc764e

Browse files
committed
fix: update autoformat.sh script
1 parent 9bcdf64 commit 9cc764e

1 file changed

Lines changed: 28 additions & 5 deletions

File tree

autoformat.sh

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,33 @@ then
1818
fi
1919

2020

21-
echo "Running isort to sort imports..."
22-
isort .
21+
echo '---------------------------------------'
22+
echo '| Organizing imports for src/...'
23+
echo '---------------------------------------'
2324

24-
echo "Running pyink to reformat code..."
25-
pyink .
25+
isort src/
26+
echo 'All done! ✨ 🍰 ✨'
2627

27-
echo "Formatting complete."
28+
echo '---------------------------------------'
29+
echo '| Organizing imports for tests/...'
30+
echo '---------------------------------------'
31+
32+
isort tests/
33+
echo 'All done! ✨ 🍰 ✨'
34+
35+
36+
37+
echo '---------------------------------------'
38+
echo '| Auto-formatting src/...'
39+
echo '---------------------------------------'
40+
41+
find -L src/ -not -path "*/.*" -type f -name "*.py" -exec pyink --config pyproject.toml {} +
42+
43+
echo '---------------------------------------'
44+
echo '| Auto-formatting tests/...'
45+
echo '---------------------------------------'
46+
47+
find -L tests/ -not -path "*/.*" -type f -name "*.py" -exec pyink --config pyproject.toml {} +
48+
49+
50+
echo "Formatting complete."

0 commit comments

Comments
 (0)