Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 8 additions & 11 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,28 @@
name: lint

on:
push:
branches: ["*"]
pull_request:
branches: ["*"]

jobs:
lint:
ruff:
name: Ruff Check & Format
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
- name: Set up Ruff
uses: astral-sh/ruff-action@v4.1.0
with:
python-version: "3.11"

- name: Install ruff
run: |
python -m pip install --upgrade pip
pip install "ruff==$(grep -oP '^ruff==\K.*' requirements.txt)"
version-file: "requirements.txt"
args: "--version"

Comment thread
Davihan11 marked this conversation as resolved.
- name: Ruff check
id: ruff_check
run: ruff check
run: ruff check --output-format=github

- name: Ruff format
run: ruff format --check
Expand Down
Loading