File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818fi
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."
You can’t perform that action at this time.
0 commit comments