diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9ac9f78..8d4b7be 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,3 +1,5 @@ +name: lint + on: push: branches: ["*"] @@ -5,27 +7,22 @@ on: 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" - name: Ruff check id: ruff_check - run: ruff check + run: ruff check --output-format=github - name: Ruff format run: ruff format --check