Skip to content

Commit

Permalink
ci: commit black changes directly ffs
Browse files Browse the repository at this point in the history
  • Loading branch information
alexAubin committed Nov 29, 2024
1 parent 5dfd1c6 commit 161c647
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/autoblack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,9 @@ jobs:
$diff = git diff
$HasDiff = $diff.Length -gt 0
Write-Host "::set-output name=files_changed::$HasDiff"
- name: Create Pull Request
if: steps.check_files_changed.outputs.files_changed == 'true'
uses: peter-evans/create-pull-request@v6
- uses: stefanzweifel/git-auto-commit-action@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
title: "Format Python code with Black"
commit-message: ":art: Format Python code with Black"
body: |
This pull request uses the [psf/black](https://github.com/psf/black) formatter.
base: ${{ github.head_ref }} # Creates pull request onto pull request or commit branch
branch: actions/black
commit_message: ":art: Format Python code with Black"
commit_user_name: yunohost-bot
commit_user_email: [email protected]
commit_author: 'yunohost-bot <[email protected]>'
2 changes: 2 additions & 0 deletions package_linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
from tests.test_app import App




def main():
parser = argparse.ArgumentParser()
parser.add_argument("app_path", type=Path, help="The path to the app to lint")
Expand Down

0 comments on commit 161c647

Please sign in to comment.