Files
seafile-mirror/.gitea/workflows/linting.yaml
Renovate Bot 60730ddd1c
Some checks failed
renovate/stability-days Updates have met minimum release age requirement
REUSE Compliance / reuse (pull_request) Failing after 3s
Python Linters / formatting (pull_request) Successful in 36s
Python Linters / mypy (pull_request) Successful in 1m13s
Python Linters / pylint (pull_request) Successful in 1m16s
Selftests / test-sync (pull_request) Successful in 1m8s
Selftests / test-build-install (pull_request) Successful in 1m27s
chore(deps): update actions/checkout action to v5
2025-08-15 00:05:44 +00:00

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@v5
- 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@v5
- 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@v5
- name: Install dependencies
uses: ./.gitea/actions/poetrybuild
- name: Test typing with mypy
run: poetry run mypy