Skip to content

Commit 76709a7

Browse files
committed
autoformatter
1 parent f5a7b4b commit 76709a7

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/auto_formatter.yaml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Copyright 2024 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: Format python code
16+
on: push
17+
jobs:
18+
autopep8:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: autopep8
23+
uses: peter-evans/autopep8@v2
24+
with:
25+
args: --recursive --in-place --aggressive --aggressive .
26+
- name: Create Pull Request
27+
uses: peter-evans/create-pull-request@v3
28+
with:
29+
commit-message: autopep8 action fixes
30+
title: Fixes by autopep8 action
31+
body: This is an auto-generated PR with fixes by autopep8.
32+
labels: autopep8, automated pr
33+
reviewers: obliviour
34+
branch: autopep8-patches

0 commit comments

Comments
 (0)