Skip to content

Format

poetry | format

- uses: jambazid/gha-actions/python/poetry/format@unknown
  with:
    working-directory: (1)
  1. Python project location (path to the pyproject.toml folder).

Formats Python code with black and then commits any changes.

Important

Assumes the following Project folder structure:

${working-directory}
├── pyproject.toml
├── ...
|
├── /src
|   └── /${namespace}
|       └── /${component}
|           └── ...
|
└── /tests
    └── ...

Inputs: ¤

Name Description
working-directory ¤

Python project location (path to the pyproject.toml folder).