1# Copyright 2023 The Bazel Authors. All rights reserved. 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# http://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# See CONTRIBUTING.md for instructions. 16# See https://pre-commit.com for more information 17# See https://pre-commit.com/hooks.html for more hooks 18repos: 19 - repo: https://github.com/pre-commit/pre-commit-hooks 20 rev: v5.0.0 # Use the ref you want to point at 21 hooks: 22 - id: check-merge-conflict 23 - repo: https://github.com/keith/pre-commit-buildifier 24 rev: 6.1.0 25 hooks: 26 - id: buildifier 27 args: &args 28 # Keep this argument in sync with .bazelci/presubmit.yaml 29 - --warnings=all 30 - id: buildifier-lint 31 args: *args 32 - repo: https://github.com/pycqa/isort 33 rev: 5.12.0 34 hooks: 35 - id: isort 36 name: isort (python) 37 args: 38 - --profile 39 - black 40 - repo: https://github.com/psf/black 41 rev: 23.1.0 42 hooks: 43 - id: black 44 - repo: local 45 hooks: 46 - id: update-deleted-packages 47 name: Update deleted packages 48 language: system 49 entry: bazel run @rules_bazel_integration_test//tools:update_deleted_packages 50 files: ^((examples|tests)/.*/(MODULE.bazel|WORKSPACE|WORKSPACE.bzlmod|BUILD.bazel)|.bazelrc)$ 51 pass_filenames: false 52