forked from uni-passau-artemis/artemis-changelog
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (33 loc) · 1.03 KB
/
lint.yml
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
33
34
35
36
37
38
39
40
41
42
43
44
# SPDX-FileCopyrightText: 2023 Artemis Changelog Contributors
#
# SPDX-License-Identifier: EUPL-1.2
name: Lint
on: [push, pull_request]
jobs:
ci:
strategy:
fail-fast: false
matrix:
python-version: ["3.12", "3.13"]
os: ["ubuntu-latest"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install the project
run: uv sync --all-extras --dev
- name: Check imports with isort
run: uv run isort --check-only . --profile black
- name: Check formatting
run: uv run ruff format --diff --check .
- name: Check typing with mypy
run: uv run mypy src tests
- name: Check typing with pyre
run: uv run pyre
- name: General linting with ruff
run: uv run ruff check src tests
- name: Check reuse
run: uv run reuse lint