Skip to content

konstruktoid/action-pylint

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
This branch is up to date with master.

Folders and files

NameName
Last commit message
Last commit date
Mar 29, 2025
Dec 21, 2023
Apr 1, 2025
Jan 8, 2020
Oct 11, 2024
Feb 17, 2023
Nov 28, 2024
Oct 11, 2024
Jul 17, 2024
Mar 29, 2025

Repository files navigation

Python linting and testing using black and ruff

A GitHub action that checks Python code using black and ruff.

Github Actions configuration examples

on: [push, pull_request]
name: Python linting

permissions:
  contents: read

jobs:
  PythonLinting:
    name: Python linting
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4

      - name: Python linting
        uses: konstruktoid/action-pylint@v1.0.0

Script

#!/bin/sh

set -euf

export PATH="${PATH}:/root/.local/bin"

black --check --diff --no-color --quiet .
ruff check --select ALL .