Skip to content

Commit 7359cdd

Browse files
committed
Add a CI job to enforce code style
1 parent 70e7475 commit 7359cdd

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/lint.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Lints
2+
3+
on:
4+
pull_request:
5+
push:
6+
paths-ignore:
7+
- '**.rst'
8+
9+
jobs:
10+
ruff:
11+
runs-on: ubuntu-22.04
12+
13+
steps:
14+
- name: Checkout pygit2
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Python
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: '3.12'
21+
22+
- name: Install ruff
23+
run: pip install ruff
24+
25+
- name: Check code style with ruff
26+
run: ruff format --diff

0 commit comments

Comments
 (0)