From dddba36647a50cb33cf0df572cc1272afbdcde31 Mon Sep 17 00:00:00 2001 From: HibiKier <775757368@qq.com> Date: Fri, 17 Jan 2025 10:39:46 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E6=96=B0=E5=A2=9ERuff=20Lint?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ruff.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/ruff.yml diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml new file mode 100644 index 00000000..214a3d23 --- /dev/null +++ b/.github/workflows/ruff.yml @@ -0,0 +1,31 @@ +name: Ruff Lint + +on: + push: + branches: + - "*" + pull_request: + paths: + - "zhenxun/**" + - "tests/**" + - ".github/workflows/ruff.yml" + - "pyproject.toml" + - "poetry.lock" + +jobs: + ruff: + name: Ruff Lint + runs-on: ubuntu-latest + concurrency: + group: ruff-${{ github.ref }} + cancel-in-progress: true + + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Install Ruff Format + uses: astral-sh/ruff-action@v3 + - name: Run Ruff Check + run: ruff check + - name: Run Ruff Format + run: ruff format