Skip to content

Commit

Permalink
github: Add a linting job
Browse files Browse the repository at this point in the history
Currently this just runs ruff on python code, more checks to come.
  • Loading branch information
dcbaker committed Dec 4, 2024
1 parent 972a1a7 commit 0b2feba
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Lint

on: [push, pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true

jobs:
Ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Ruff for Python
uses: astral-sh/ruff-action@v2
with:
# Allows ruff to be cached, speeding up checks
version: 0.8.1

0 comments on commit 0b2feba

Please sign in to comment.