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
|