Skip to content

REUSE fixes

REUSE fixes #14

Workflow file for this run

# SPDX-FileCopyrightText: Blair Bonnett
# SPDX-License-Identifier: BSD-3-Clause
name: Check code formatting
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
run-linters:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
id: setup
uses: actions/setup-python@v4
with:
python-version: "3.x"
architecture: x64
- name: Check import ordering with isort
id: isort
continue-on-error: true
uses: isort/isort-action@master
- name: Check code style with Black
id: black
continue-on-error: true
uses: psf/black@stable
- name: Check overall status
run: |
if [ ${{steps.isort.outcome}} = "failure" ]; then exit 1; fi
if [ ${{steps.black.outcome}} = "failure" ]; then exit 1; fi