Files
seafile-mirror/.gitea/workflows/linting.yaml
Renovate Bot 4c334858b2
All checks were successful
Python Linters / pylint (pull_request) Successful in 1m21s
Python Linters / formatting (pull_request) Successful in 26s
Python Linters / mypy (pull_request) Successful in 44s
REUSE Compliance / reuse (pull_request) Successful in 9s
Selftests / test-build-install (pull_request) Successful in 46s
Selftests / test-sync (pull_request) Successful in 1m19s
chore(deps): update actions/checkout action to v4
2024-01-16 23:00:41 +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@v4
- 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@v4
- 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@v4
- name: Install dependencies
uses: ./.gitea/actions/poetrybuild
- name: Test typing with mypy
run: poetry run mypy