Skip to content

Python quality and format checker

Actions
Python linting and format checking using black ruff
v1.1.0
Latest
Star (10)

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/[email protected]

Script

#!/bin/sh

set -euf

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

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

Python quality and format checker is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Python linting and format checking using black ruff
v1.1.0
Latest

Python quality and format checker is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.