Added ruff linter

This commit is contained in:
kevinveenbirkenbach committed 2025-12-16 22:24:57 +01:00
1 parent 3123ac4a08
commit b5749415d1
1 file changed
+38
+38
View File
@@ -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 .