Skip to content

Commit

Permalink
allow python override in Makefile to be able to use it with uv
Browse files Browse the repository at this point in the history
  • Loading branch information
sysradium committed Feb 13, 2025
1 parent 83e8741 commit 149546d
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
.PHONY: quality style test docs utils

PYTHON ?= python

check_dirs := examples src tests utils

# Check code quality of the source code
quality:
ruff check $(check_dirs)
ruff format --check $(check_dirs)
python utils/check_tests_in_ci.py
$(PYTHON) -m ruff check $(check_dirs)
$(PYTHON) -m ruff format --check $(check_dirs)
$(PYTHON) utils/check_tests_in_ci.py

# Format source code automatically
style:
ruff check $(check_dirs) --fix
ruff format $(check_dirs)
$(PYTHON) -m ruff check $(check_dirs) --fix
$(PYTHON) -m ruff format $(check_dirs)

# Run smolagents tests
test:
pytest ./tests/
$(PYTHON) -m pytest ./tests/

0 comments on commit 149546d

Please sign in to comment.