/black-check

github action to run black

Primary LanguageDockerfileMIT LicenseMIT

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