Skip to content

Commit

Permalink
Port 4254 support port ocean in mypy (#12)
Browse files Browse the repository at this point in the history
Mypy support
  • Loading branch information
yairsimantov20 authored Jul 18, 2023
1 parent 2e8661d commit 478a34a
Show file tree
Hide file tree
Showing 6 changed files with 87 additions and 85 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ACTIVATE := . .venv/bin/activate

define run_lint
define run_checks
exit_code=0; \
cd $1; \
poetry check || exit_code=$$?;\
Expand All @@ -9,18 +9,18 @@ define run_lint
ruff . || exit_code=$$?; \
black --check . || exit_code=$$?; \
if [ $$exit_code -eq 1 ]; then \
echo "\033[0;31mOne or more lints failed with exit code $$exit_code\033[0m"; \
echo "\033[0;31mOne or more checks failed with exit code $$exit_code\033[0m"; \
else \
echo "\033[0;32mAll lints executed successfully.\033[0m"; \
echo "\033[0;32mAll checks executed successfully.\033[0m"; \
fi; \
exit $$exit_code
endef


define install_poetry
if ! command -v poetry &> /dev/null; then \
echo "Poetry is not installed. Installing..."; \
curl -sSL https://install.python-poetry.org | python3 -; \
pip install --upgrade pip; \
pip install poetry; \
else \
echo "Poetry is already installed."; \
fi
Expand Down Expand Up @@ -67,7 +67,7 @@ install/all: install
# Linting
lint:
$(ACTIVATE) && \
$(call run_lint,.)
$(call run_checks,.)

lint/integrations:
$(ACTIVATE) && \
Expand Down
Loading

0 comments on commit 478a34a

Please sign in to comment.