Skip to content

About

A GitHub action that runs black code formatter for Python

Resources

Stars

1 star

Watchers

0 watching

Forks

 
 

Latest commit

 

History

18 Commits

Folders and files

Repository files navigation

Black Code Formatter GitHub Action

A GitHub action that runs black code formatter for Python.

Example Workflow

name: Black Code Formatting on PR

on: [pull_request]

jobs:
  pr-lint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        name: Checkout
      - uses: Ahuge/black-action@v1.0.2
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          BLACK_ARGS: "."

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

Code inspired by https://github.com/MarvinJWendt/run-node-formatter

About

A GitHub action that runs black code formatter for Python

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages