From 8617357fe4a9cd8cd6a96956ddc25237cd3c4fd9 Mon Sep 17 00:00:00 2001 From: haixuantao Date: Tue, 25 Feb 2025 17:38:31 +0100 Subject: [PATCH] Add uv at the beginning of installation instruction --- .github/workflows/ci.yml | 6 +++--- binaries/cli/src/template/python/__node-name__/README.md | 9 +++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4f36adbf..559d096e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -317,9 +317,9 @@ jobs: cd test_python_project # Check Compliancy - ruff check . - pip install -e ./*/ - pytest + uv pip install -e ./*/ + uv run ruff check . + uv run pytest export OPERATING_MODE=SAVE dora up diff --git a/binaries/cli/src/template/python/__node-name__/README.md b/binaries/cli/src/template/python/__node-name__/README.md index be5113f1..93c23e83 100644 --- a/binaries/cli/src/template/python/__node-name__/README.md +++ b/binaries/cli/src/template/python/__node-name__/README.md @@ -5,7 +5,8 @@ - Install it with pip: ```bash -pip install -e . +uv venv -p 3.11 --seed +uv pip install -e . ``` ## Contribution Guide @@ -13,19 +14,19 @@ pip install -e . - Format with [ruff](https://docs.astral.sh/ruff/): ```bash -ruff check . --fix +uv run ruff check . --fix ``` - Lint with ruff: ```bash -ruff check . +uv run ruff check . ``` - Test with [pytest](https://github.com/pytest-dev/pytest) ```bash -pytest . # Test +uv run pytest . # Test ``` ## YAML Specification