chore(deps): update dependency ruff to ^0.0.284 #316
Workflow file for this run
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: 2022 Benedikt Fein | |
# | |
# SPDX-License-Identifier: EUPL-1.2 | |
name: CI | |
on: [push, pull_request] | |
jobs: | |
ci: | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.11"] | |
poetry-version: ["latest"] | |
os: ["ubuntu-latest"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
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 spring_yaml_to_env tests | |
- name: Linting with ruff | |
run: poetry run ruff . | |
- name: Check docstrings with darglint | |
run: poetry run darglint2 -s sphinx -v 2 spring_yaml_to_env/*.py | |
- name: Run tests | |
run: poetry run pytest --cov=spring_yaml_to_env --cov=tests --cov-branch --cov-report=term-missing tests/ | |
- name: Check reuse | |
run: poetry run reuse lint |