Skip to content

cvra/python-format-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Black format Github action

This project can be used to run Black on every push using Github actions.

Usage

For a more detailed installation guide look there

Create a formatter.yml file in .github/workflows/. Paste this code into the file:

on: push
name: Black Python Formatter
jobs:
  lint:
    name: Black Python Formatter
    runs-on: ubuntu-latest
    steps:
    - name: Black Python Formatter
      uses: antoinealb/black-formatter-action@clang9
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

About

A github action to use the Black python code formatter (https://github.com/psf/black)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published