Skip to content

Add github action to run lint source code #42

Add github action to run lint source code

Add github action to run lint source code #42

Workflow file for this run

# SPDX-License-Identifier: MPL-2.0
# SPDX-FileCopyrightText: 2024 igo95862
---
name: CI
on:
push:
pull_request:
workflow_dispatch:
jobs:
linters:
name: Run source code linters
runs-on: ubuntu-latest
container:
image: docker.io/archlinux:latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install linters
run: |
pacman --noconfirm -Syu \
reuse python-pyflakes python-black \
python-isort mypy codespell
- name: Run linters
run: |
python3 tools/run_linters.py