File: lint.yml

package info (click to toggle)
python-pygit2 1.18.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,804 kB
  • sloc: ansic: 12,348; python: 11,309; sh: 205; makefile: 26
file content (32 lines) | stat: -rw-r--r-- 588 bytes parent folder | download
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
name: Lints

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

jobs:
  ruff:
    runs-on: ubuntu-24.04

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

    - name: Set up Python
      uses: actions/setup-python@v5
      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.1 /bin/sh build.sh mypy