Skip to content

chore(deps): update reviewdog/action-suggester action to v1.7.5 #215

chore(deps): update reviewdog/action-suggester action to v1.7.5

chore(deps): update reviewdog/action-suggester action to v1.7.5 #215

Workflow file for this run

name: check format
on:
push:
branches: [ main ]
paths:
- '**.py'
- '.github/workflows/black.yml'
pull_request:
branches: [ main ]
paths:
- '**.py'
- '.github/workflows/black.yml'
jobs:
black:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
name: black style
defaults:
run:
shell: bash
steps:
- uses: actions/[email protected]
- name: setting up python
uses: actions/[email protected]
with:
python-version-file: pyproject.toml
- name: check python formatting using black
uses: rickstaa/[email protected]
id: action_black
- name: creating pull request
if: steps.action_black.outputs.is_formatted == 'true' && github.head_ref == ''
uses: peter-evans/[email protected]
with:
commit-message: 'style(format): reformat with black'
title: 'style(format): reformat with black'
body: |
This pull requests deploys the new Python code style [black][1].
[1]: https://github.com/psf/black
labels: |
style
chore
black
branch: black
delete-branch: true
branch-suffix: short-commit-hash
- name: annotate diff changes using reviewdog
if: steps.action_black.outputs.is_formatted == 'true' && github.head_ref != ''
uses: reviewdog/[email protected]
with:
tool_name: blackfmt