diff --git a/.github/workflows/lint-ruff.yaml b/.github/workflows/lint-ruff.yaml index ba74f1f..d7916d7 100644 --- a/.github/workflows/lint-ruff.yaml +++ b/.github/workflows/lint-ruff.yaml @@ -18,4 +18,4 @@ jobs: make install-lint - name: Run ruff run: | - make ruff \ No newline at end of file + make ruff-check \ No newline at end of file diff --git a/makefile b/makefile index 20695cc..833c5e6 100644 --- a/makefile +++ b/makefile @@ -26,7 +26,9 @@ help: @echo "ruff-format-check" @echo " Check if ruff format would change files" @echo "ruff" - @echo " Run ruff on the project" + @echo " Run ruff on the project and fix errors" + @echo "ruff-check" + @echo " Run ruff check on the project without fixing errors" @echo "conda-env" @echo " Create conda environment 'curvlinops' with dev setup" @echo "darglint-check" @@ -85,11 +87,14 @@ ruff-format: ruff-format-check: @ruff format --check . -.PHONY: ruff +.PHONY: ruff-check ruff: @ruff check . --fix +ruff-check: + @ruff check . + .PHONY: darglint-check darglint-check: