python-format-action
README
python-format-action
GitHub action to apply black formatting + reorder-python-imports
Largely derived from
Example usage
- Create
$GIT_REPO_ROOT_DIR/.github/workflows - Create
$GIT_REPO_ROOT_DIR/.github/workflows/main.yml
Fill above file file with:
name: "PythonFormatting"
on: [push, pull_request]
jobs:
formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Run reorder-python-imports + black formatter
- name: Black Code Formatter
uses: tdeboissiere/python-format-action@master
You can then add a status in your README by adding:

If the name of your workflow contains a space, e.g. Python Formatting, use %20:

MongoDB - Build AI That Scales
