Skip to content

Commit

Permalink
Pre-commit mega
Browse files Browse the repository at this point in the history
  • Loading branch information
tpdownes committed Feb 7, 2024
1 parent 04667fc commit e0df9a6
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 13 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/pr-precommit-fix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Copyright 2024 "Google LLC"
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

on:
pull_request:
types:
- ready_for_review
branches:
- develop

jobs:
- pre_commit_fix:
runs-on: ubuntu-2204
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- uses: actions/setup-go@v5
with:
go-version: '1.22'
- uses: pre-commit/[email protected]
- uses: pre-commit-ci/[email protected]
if: always()
13 changes: 0 additions & 13 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,16 +120,3 @@ repos:
- id: codespell
exclude: requirements.txt$|/js/|go.sum$
exclude: tools/validate_configs/golden_copies/.*


ci:
autofix_commit_msg: |
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
autofix_prs: true
autoupdate_branch: ''
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
autoupdate_schedule: weekly
skip: []
submodules: false

0 comments on commit e0df9a6

Please sign in to comment.