Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
check-square

GitHub Action

Black Check

24.1.1

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

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/'