Skip to content

CI: check REUSE compliance during linting #54

CI: check REUSE compliance during linting

CI: check REUSE compliance during linting #54

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@v6
- name: Set up Python
id: setup
uses: actions/setup-python@v6
with:
python-version: 3.x
architecture: x64
- name: Lint
uses: astral-sh/ruff-action@v4.0.0
- name: Check formatting
if: always()
run: ruff format --check
- name: Check REUSE compliance
if: always()
uses: fsfe/reuse-action@v6