Skip to content

Commit

Permalink
Add a CI job to enforce code style
Browse files Browse the repository at this point in the history
  • Loading branch information
xen0n committed Mar 4, 2024
1 parent 1a9947a commit fcc78a9
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Lints

on:
pull_request:
push:
paths-ignore:
- '**.rst'

jobs:
ruff:
runs-on: ubuntu-22.04

steps:
- name: Checkout pygit2
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install ruff
run: pip install ruff

- name: Check code style with ruff
run: ruff format --diff

0 comments on commit fcc78a9

Please sign in to comment.