From 62fe4431f680beef6d0a259e14e889e3de34e633 Mon Sep 17 00:00:00 2001 From: rednafi Date: Tue, 15 Oct 2024 22:14:28 +0200 Subject: [PATCH] Use uv run --- .github/workflows/test.yml | 5 ----- makefile | 12 ++++++------ 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ea0b756..b3457c1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,11 +26,6 @@ jobs: matrix: os: [ubuntu-latest, macos-latest] python-version: ["3.11", "3.12", "3.13"] - include: - - os: ubuntu-latest - path: ~/.cache/pip - - os: macos-latest - path: ~/Library/Caches/pip steps: - uses: actions/checkout@v4 diff --git a/makefile b/makefile index 628ef1c..98dbd28 100755 --- a/makefile +++ b/makefile @@ -18,16 +18,16 @@ lint-check: ## Check whether the codebase satisfies the linter rules. @echo "Checking linter rules..." @echo "========================" @echo - @ruff check $(path) - @mypy $(path) + @uv run ruff check $(path) + @uv run mypy $(path) .PHONY: ruff ruff: ## Apply ruff. @echo "Applying ruff..." @echo "================" @echo - @ruff check --fix $(path) - @ruff format $(path) + @uv run ruff check --fix $(path) + @uv run ruff format $(path) .PHONY: mypy mypy: ## Apply mypy. @@ -35,7 +35,7 @@ mypy: ## Apply mypy. @echo "Applying mypy..." @echo "=================" @echo - @mypy $(path) + @uv run mypy $(path) .PHONY: help help: ## Show this help message. @@ -43,7 +43,7 @@ help: ## Show this help message. .PHONY: test test: ## Run the tests against the current version of Python. - cd svc && pytest -vv && cd .. + cd svc && uv run pytest -vv && cd .. .PHONY: dep-lock dep-lock: ## Freeze deps in 'requirements*.txt' files.