Files
computer-playbook/.github/workflows/lint-python.yml
T
2025-12-16 22:24:57 +01:00

39 lines
676 B
YAML

name: Lint Python (ruff)
on:
push:
branches:
- master
- main
- develop
- "*"
pull_request:
jobs:
lint-python:
name: lint-python
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install ruff
run: |
python -m pip install --upgrade pip
pip install ruff
- name: Ruff (lint)
run: |
ruff check .
- name: Ruff (format check)
run: |
ruff format --check .