-
Notifications
You must be signed in to change notification settings - Fork 561
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bb7a55c
commit 0c13422
Showing
1 changed file
with
26 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
# Locally runs the same commands that the Github Action does. | ||
# Run this script before pushing to avoid Github Push issues. | ||
|
||
RED="\e[31m" | ||
GREEN="\e[32m" | ||
BLUE="\e[34m" | ||
ENDCOLOR="\e[0m" | ||
|
||
# Run Black | ||
echo -e "${GREEN}Running Black${ENDCOLOR}" | ||
black . | ||
echo \ | ||
|
||
# Run Flake8 | ||
echo -e "${GREEN}Running Flake8${ENDCOLOR}" | ||
flake8 --select F,E722 --ignore F403,F405,F541 --per-file-ignores="*/__init__.py:F401,F403" | ||
echo -e "${BLUE}All Done!${ENDCOLOR}" | ||
|
||
echo \ | ||
|
||
# Show Changes | ||
echo -e "${GREEN}Showing Changes Made from Black & Flake8 (using git status)${ENDCOLOR}" | ||
git status | ||
echo \ |