Skip to content
code

GitHub Action

Black Code Formatter

v1.0.1 Latest version

Black Code Formatter

code

Black Code Formatter

Format Python code using black

Installation

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

              

- name: Black Code Formatter

uses: lgeiger/black-action@v1.0.1

Learn more about this action in lgeiger/black-action

Choose a version

Black Code Formatter GitHub Action

A GitHub action that runs black code formatter for Python.

Example Workflow

workflow "Example Workflow" {
  on = "push"
  resolves = ["Lint"]
}

action "Lint" {
  uses = "lgeiger/black-action@master"
  args = ". --check"
}

For a full list of possible args checkout the black docs.