From 6258277d600384ad3161ac9385fe7ed4111b7878 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Hells=C3=A9n?= Date: Sun, 22 Dec 2024 05:17:45 +0100 Subject: [PATCH] Use ruff in ruff workflow --- .github/workflows/ruff.yml | 9 ++++++--- pyproject.toml | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml index b90cc82..80c020a 100644 --- a/.github/workflows/ruff.yml +++ b/.github/workflows/ruff.yml @@ -6,11 +6,14 @@ on: workflow_dispatch: schedule: - cron: '0 0 * * *' # Run every day at midnight + +env: + RUFF_OUTPUT_FORMAT: github jobs: ruff: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: astral-sh/setup-uv@v5 - - run: uv sync --all-extras --dev - - run: uv run pytest -vv + - uses: astral-sh/ruff-action@v2 + - run: ruff check --exit-non-zero-on-fix --verbose + - run: ruff format --check --verbose \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 92e2692..1eba91a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -57,7 +57,7 @@ lint.isort.required-imports = ["from __future__ import annotations"] # Default is 88 characters line-length = 120 -pycodestyle.ignore-overlong-task-comments = true +lint.pycodestyle.ignore-overlong-task-comments = true [tool.ruff.format] # https://docs.astral.sh/ruff/formatter/