Use ruff in ruff workflow
This commit is contained in:
parent
9619167d09
commit
6258277d60
2 changed files with 7 additions and 4 deletions
9
.github/workflows/ruff.yml
vendored
9
.github/workflows/ruff.yml
vendored
|
|
@ -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
|
||||
|
|
@ -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/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue