From 431826814d819406b12b1563c9673450eea78f01 Mon Sep 17 00:00:00 2001 From: Dulmandakh Date: Sun, 29 Sep 2024 19:33:10 +0800 Subject: [PATCH] lint: use ruff pre commit hook (#1566) * lint: use ruff pre commit hook * dont install ruff --------- Co-authored-by: Erik Wrede --- .github/workflows/lint.yml | 4 +--- .pre-commit-config.yaml | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0b3c0fc3..9112718a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -15,9 +15,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install ruff tox - - name: Format check using Ruff - run: ruff format --check + pip install tox - name: Run lint run: tox env: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5b889e02..d7efe996 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,3 +26,4 @@ repos: hooks: - id: ruff - id: ruff-format + args: [ --check ]