diff --git a/.github/workflows/lint_python.yaml b/.github/workflows/lint_python.yaml index 10ac7d3..47e025d 100644 --- a/.github/workflows/lint_python.yaml +++ b/.github/workflows/lint_python.yaml @@ -39,5 +39,17 @@ jobs: pip install -r requirements-dev.txt pip install -r requirements.txt - - name: Lint check - run: make lint + - name: Lint with Ruff check + uses: chartboost/ruff-action@v1 + + - name: Lint with Ruff format --check + uses: chartboost/ruff-action@v1 + with: + args: 'format --check' + + - name: Lint with mypy + run: | + if [ -n "$(find . -type f -name '*.py')" ]; then + mypy --version + mypy . + fi diff --git a/Makefile b/Makefile index 8b32a55..8432101 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,7 @@ init: lint: ruff --version ruff check + ruff format --check mypy . .PHONY: fmt