-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding new script to commit changes (if present), and removing that c…
…ode from other scripts
- Loading branch information
1 parent
5b9463f
commit 9d9276b
Showing
4 changed files
with
40 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/sh | ||
|
||
# Code formatting with isort and black | ||
echo "Code formatting with isort and black:" | ||
isort $(git ls-files '*.py') | ||
black $(git ls-files '*.py') | ||
|
||
## Stage changes | ||
##git add $(git ls-files) | ||
#git add --udpate | ||
# | ||
## Check Git diff-index | ||
#git diff-index --quiet HEAD -- | ||
# | ||
#if [ $? -eq 0 ]; then | ||
# echo "No changes found, nothing to see/do here." | ||
#else | ||
# echo "Changes found. Preparing commit." | ||
# git config --local user.email "github-actions[bot]@users.noreply.github.com" | ||
# git config --local user.name "github-actions[bot]" | ||
# git commit -m "Automated formatting changes" | ||
#fi | ||
# | ||
#git log | head | ||
#exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters