refactor: Remove redundant argument annotations #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Format on push | |
on: | |
push: | |
branches: [main] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: write | |
pull-requests: write | |
env: | |
CREATE_PR: false | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version-file: pyproject.toml | |
- name: Run pre-commit | |
id: pre-commit | |
uses: pre-commit/[email protected] | |
- name: Create PR if needed | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
commit-message: "chore: Apply pre-commit suggestions" | |
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | |
delete-branch: true | |
sign-commits: true | |
title: "[pre-commit] pre-commit suggestions" | |
body: This PR was created by the [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub Action and includes fixes suggested by [pre-commit](https://github.com/pre-commit/pre-commit). | |
labels: | | |
automated pr | |
if: failure() && steps.pre-commit.outcome == 'failure' && env.CREATE_PR == 'true' |