mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2026-08-28 10:04:57 -05:00
37 lines
623 B
YAML
37 lines
623 B
YAML
---
|
|
name: Code Quality - Ruff
|
|
|
|
'on':
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
push:
|
|
branches:
|
|
- main
|
|
- 'release/**'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
ruff:
|
|
name: Python Linting and Formatting
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v6
|
|
with:
|
|
python-version: '3.14'
|
|
|
|
- name: Install Ruff
|
|
run: pip install ruff
|
|
|
|
- name: Run Ruff Linting
|
|
run: ruff check .
|
|
|
|
- name: Run Ruff Formatting Check
|
|
run: ruff format --check .
|