-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow python override in Makefile to be able to use it with uv
- Loading branch information
Showing
1 changed file
with
8 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |