Skip to content

Commit

Permalink
Use uv run
Browse files Browse the repository at this point in the history
  • Loading branch information
rednafi committed Oct 15, 2024
1 parent 7a02081 commit 62fe443
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,32 +18,32 @@ 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.
@echo
@echo "Applying mypy..."
@echo "================="
@echo
@mypy $(path)
@uv run mypy $(path)

.PHONY: help
help: ## Show this help message.
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'

.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.
Expand Down

0 comments on commit 62fe443

Please sign in to comment.