mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-28 22:06:31 +00:00
Added ruff linter
This commit is contained in:
1 file changed
+38
@@ -0,0 +1,38 @@
|
||||
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 .
|
||||
Reference in new issue
Block a user