Use ruff in ruff workflow

This commit is contained in:
2024-12-22 05:17:45 +01:00
parent 9619167d09
commit 6258277d60
2 changed files with 7 additions and 4 deletions

View File

@ -6,11 +6,14 @@ on:
workflow_dispatch: workflow_dispatch:
schedule: schedule:
- cron: '0 0 * * *' # Run every day at midnight - cron: '0 0 * * *' # Run every day at midnight
env:
RUFF_OUTPUT_FORMAT: github
jobs: jobs:
ruff: ruff:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5 - uses: astral-sh/ruff-action@v2
- run: uv sync --all-extras --dev - run: ruff check --exit-non-zero-on-fix --verbose
- run: uv run pytest -vv - run: ruff format --check --verbose

View File

@ -57,7 +57,7 @@ lint.isort.required-imports = ["from __future__ import annotations"]
# Default is 88 characters # Default is 88 characters
line-length = 120 line-length = 120
pycodestyle.ignore-overlong-task-comments = true lint.pycodestyle.ignore-overlong-task-comments = true
[tool.ruff.format] [tool.ruff.format]
# https://docs.astral.sh/ruff/formatter/ # https://docs.astral.sh/ruff/formatter/