From 0ce0a2183b5244da6790f74305e757bef40fafef Mon Sep 17 00:00:00 2001 From: Dowon Date: Sat, 22 Feb 2025 10:01:28 +0900 Subject: [PATCH] chore: update tools --- .github/workflows/test.yml | 11 ++--------- .pre-commit-config.yaml | 2 +- Taskfile.yml | 5 ++--- 3 files changed, 5 insertions(+), 13 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b8be5e4..7383ad6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,16 +22,9 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 + - uses: astral-sh/setup-uv@v5 with: python-version: ${{ matrix.python-version }} - - uses: astral-sh/setup-uv@v3 - - - name: Install dependencies - run: | - uv pip install --system ".[test]" - - name: Run tests - run: pytest -v + run: uv run --all-extras pytest -v diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f975873..ae1c46e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,7 +24,7 @@ repos: - id: prettier - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.9.6 + rev: v0.9.7 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/Taskfile.yml b/Taskfile.yml index bd3c8f1..494885f 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -10,13 +10,12 @@ tasks: cmds: - echo "$PYTHON" - echo "$WEBUI" - - echo "$UV_PYTHON" silent: true launch: dir: "{{.WEBUI}}" cmds: - - "{{.PYTHON}} launch.py --xformers --api" + - "{{.PYTHON}} launch.py --xformers --api {{ .CLI_ARGS }}" silent: true lint: @@ -29,4 +28,4 @@ tasks: update-torch: cmds: - - "{{.PYTHON}} -m uv pip install -U torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu124" + - "{{.PYTHON}} -m uv pip install -U torch torchvision torchaudio xformers --extra-index-url https://download.pytorch.org/whl/cu126"