-
-
Notifications
You must be signed in to change notification settings - Fork 401
34 lines (26 loc) · 634 Bytes
/
lint.yml
File metadata and controls
34 lines (26 loc) · 634 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Lints
on:
pull_request:
branches: [master]
push:
branches: [master]
paths-ignore:
- '**.rst'
jobs:
ruff:
runs-on: ubuntu-24.04
steps:
- name: Checkout pygit2
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.13'
- name: Install ruff
run: pip install ruff
- name: Format code with ruff
run: ruff format --diff
- name: Check code style with ruff
run: ruff check
- name: Check typing with mypy
run: LIBSSH2_VERSION=1.11.1 LIBGIT2_VERSION=1.9.2 /bin/sh build.sh mypy