From 0c134222970a1a0f96a8e1b5c87f01cf893f4371 Mon Sep 17 00:00:00 2001 From: Jack Ward Date: Thu, 8 Feb 2024 10:21:19 -0600 Subject: [PATCH] Ran Flake8 & Created lint-tests.sh --- lint-tests.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 lint-tests.sh diff --git a/lint-tests.sh b/lint-tests.sh new file mode 100755 index 000000000..ee02b6290 --- /dev/null +++ b/lint-tests.sh @@ -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 \ \ No newline at end of file