actions-marketplace-validations/Run python black code formatter
Run the black formatter on your codebase to improve code review experience.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| additional_args | Black additional input arguments. | no | "" |
| fail_on_error | Exit code when black formatting errors are found [true, false]. Defaults to 'true'. | no | true |
| main_branch | Main branch of the repository to speed up incremental diff | no | main |
| quiet_mode | (--quiet) Don't emit non-error messages to stderr. Errors are still emitted; silence those with 2>/dev/null | no | false |
| print_diff_mode | (--diff) Don't write the files back, just output a diff for each file on stdout. | no | false |
| check_mode | (--check) Don't write the files back, just return the status. Return code 0 means nothing would change. Return code 1 means some files would be reformatted. Return code 123 means there was an internal error. | no | false |
| only_changed_files | Turn on if you only want to check changed files instead of all files. | no | false |
| base_commit | Sha of the commit to compare files to. | no | "" |
Outputs
| name | description |
|---|---|
| is_formatted | Whether the files were formatted using the black formatter. |