Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Latest commit

 

History

History
30 lines (20 loc) · 642 Bytes

File metadata and controls

30 lines (20 loc) · 642 Bytes

Black Code Formatter GitHub Action

A GitHub action that runs black code formatter for Python.

Example action

name: Build

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v1
      with:
        lfs: false
    - name: Black Code Formatter
      uses: tripactions/black-code-formatter@21.4b1
      with:
        args: ". --check -l 100 -t py37"

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

Based on the original lgeiger/black-action.