File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -538,14 +538,19 @@ test-integration: setup-ollama ## Run integration tests (requires Ollama and DB)
538538
539539lint : # # Run linters
540540 @printf " $( BLUE) Running linters...$( NC) \n"
541- @uv run ruff check $(SRC_DIR ) / $(UI_DIR ) / || printf " $( YELLOW) ruff not installed, skipping$( NC) \n"
541+ @if uv run ruff --version > /dev/null 2>&1 ; then uv run ruff check $(SRC_DIR ) / $(UI_DIR ) /; else printf " $( YELLOW) ruff not installed, skipping$( NC) \n" ; fi
542542 @printf " $( GREEN) ✓ Linting complete$( NC) \n"
543543
544544format : # # Auto-format code
545545 @printf " $( BLUE) Formatting code...$( NC) \n"
546- @uv run ruff format $(SRC_DIR ) / $(UI_DIR ) / || printf " $( YELLOW) ruff not installed, skipping$( NC) \n"
546+ @if uv run ruff --version > /dev/null 2>&1 ; then uv run ruff format $(SRC_DIR ) / $(UI_DIR ) /; else printf " $( YELLOW) ruff not installed, skipping$( NC) \n" ; fi
547547 @printf " $( GREEN) ✓ Formatting complete$( NC) \n"
548548
549+ typecheck : # # Run typecheck
550+ @printf " $( BLUE) Running typecheck...$( NC) \n"
551+ @if uv run mypy --version > /dev/null 2>&1 ; then uv run mypy $(SRC_DIR ) / $(UI_DIR ) /; else printf " $( YELLOW) mypy not installed, skipping$( NC) \n" ; fi
552+ @printf " $( GREEN) ✓ Typecheck complete$( NC) \n"
553+
549554# #@ Cleanup
550555
551556clean : # # Clean generated files and caches
You can’t perform that action at this time.
0 commit comments