Skip to content
check-square

GitHub Action

Black Check

24.8.0 Latest version

Black Check

check-square

Black Check

GitHub action to run black on your python repository

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Black Check

uses: jpetrucciani/black-check@24.8.0

Learn more about this action in jpetrucciani/black-check

Choose a version

black-check

GitHub Action for black

Inputs

path

Optional The path to run black on

Default "."

black_flags

Optional Optional black flags (refer to black --help)

Default ""

Outputs

None

Example usage

uses: jpetrucciani/black-check@master

# or specify a path!
uses: jpetrucciani/black-check@master
with:
  path: '.'

# or specify more flags!
uses: jpetrucciani/black-check@master
with:
  black_flags: '--exclude ./env/'