Skip to content

Commit

Permalink
Ran Flake8 & Created lint-tests.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
stryker2k2 committed Feb 8, 2024
1 parent bb7a55c commit 0c13422
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions lint-tests.sh
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 \

0 comments on commit 0c13422

Please sign in to comment.