Skip to content

Commit

Permalink
[DROP] Debug CI
Browse files Browse the repository at this point in the history
  • Loading branch information
erikzaadi committed Jan 6, 2025
1 parent b9bf2db commit a5c6b85
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,24 @@ ACTIVATE := . .venv/bin/activate

define run_checks
exit_code=0; \
echo "Before all => $$exit_code"; \
cd $1; \
echo "Running poetry check"; \
poetry check || exit_code=$$?;\
echo "Ran poetry - got $$? -> val = $$exit_code"; \
echo "Running mypy"; \
mypy . --exclude '/\.venv/' || exit_code=$$?; \
echo "Ran mypy - got $$? -> val = $$exit_code"; \
echo "Running ruff"; \
ruff check . || exit_code=$$?; \
echo "Ran ruff - got $$? -> val = $$exit_code"; \
echo "Running black"; \
black --check . || exit_code=$$?; \
echo "Ran black - got $$? -> val = $$exit_code"; \
echo "Running yamllint"; \
yamllint . || exit_code=$$?; \
echo "Ran yamllint - got $$? -> val = $$exit_code"; \
echo "Before check => $$exit_code"; \
if [ $$exit_code -eq 1 ]; then \
echo "\033[0;31mOne or more checks failed with exit code $$exit_code\033[0m"; \
else \
Expand Down

0 comments on commit a5c6b85

Please sign in to comment.