All checks were successful
renovate/stability-days Updates have met minimum release age requirement
Python Linters / pylint (pull_request) Successful in 35s
Python Linters / formatting (pull_request) Successful in 34s
Python Linters / mypy (pull_request) Successful in 37s
REUSE Compliance / reuse (pull_request) Successful in 49s
Selftests / test-sync (pull_request) Successful in 1m0s
Selftests / test-build-install (pull_request) Successful in 1m26s
42 lines
955 B
YAML
42 lines
955 B
YAML
# SPDX-FileCopyrightText: 2023 Max Mehl <https://mehl.mx>
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
name: Python Linters
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
jobs:
|
|
pylint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- name: Install dependencies
|
|
uses: ./.gitea/actions/poetrybuild
|
|
- name: Lint with pylint
|
|
run: poetry run pylint seafile_mirror
|
|
|
|
formatting:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- name: Install dependencies
|
|
uses: ./.gitea/actions/poetrybuild
|
|
- name: Test formatting with isort and black
|
|
run: |
|
|
poetry run isort --check seafile_mirror/
|
|
poetry run black .
|
|
|
|
mypy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- name: Install dependencies
|
|
uses: ./.gitea/actions/poetrybuild
|
|
- name: Test typing with mypy
|
|
run: poetry run mypy
|