Skip to content

Commit

Permalink
add linting GH workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mjamroz committed Aug 29, 2024
1 parent 5f9c21e commit 247853c
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Format

on:
pull_request:
workflow_dispatch:
push:
branches:
- main
jobs:
format:
name: Ruff
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff
- name: Lint with Ruff
run: ruff check --output-format=github .

0 comments on commit 247853c

Please sign in to comment.