chore(deps): update dependency pre-commit to v4 #35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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"] | |
poetry-version: ["latest"] | |
os: ["ubuntu-latest"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Setup Poetry | |
uses: abatilo/[email protected] | |
with: | |
poetry-version: ${{ matrix.poetry-version }} | |
- name: Install dependencies | |
run: poetry install | |
- name: Check imports with isort | |
run: poetry run isort --check-only . --profile black | |
- name: Check formatting with black | |
run: poetry run black --diff --check . | |
- name: Check typing with mypy | |
run: poetry run mypy src tests | |
- name: Check typing with pyre | |
run: poetry run pyre | |
- name: General linting with ruff | |
run: poetry run ruff check src tests | |
- name: Check reuse | |
run: poetry run reuse lint |