forked from enthought/comtypes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add auto-formatter GHA triggered by PR (enthought#427)
* add `# fmt: ...` for avoiding redundant format * add GHA setting * apply automatic formatter Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
12d22a2
commit 22bfc50
Showing
81 changed files
with
3,800 additions
and
2,062 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
on: | ||
pull_request: | ||
branches: [drop_py2] # TODO: add `master` | ||
|
||
jobs: | ||
formatter: | ||
name: auto-formatter | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.7 | ||
- name: Install black | ||
run: pip install black==22.12.0 | ||
- name: Format | ||
run: python -m black comtypes/. | ||
- name: Auto-commit | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
branch: ${{ github.head_ref }} | ||
commit_message: apply automatic formatter | ||
commit_user_name: github-actions[bot] | ||
commit_user_email: 41898282+github-actions[bot]@users.noreply.github.com | ||
commit_author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> |
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
Oops, something went wrong.