Skip to content

Commit 41f3de4

Browse files
rwgkcopybara-github
authored andcommitted
Copy pybind11_protobuf/.pre-commit-config.yaml to pybind11_abseil/.pre-commit-config.yaml
This is to help with whitespace cleanup in the cmake files currently under development under #7 PiperOrigin-RevId: 556026304
1 parent e01527c commit 41f3de4

File tree

2 files changed

+50
-2
lines changed

2 files changed

+50
-2
lines changed

.pre-commit-config.yaml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
######################################################################
2+
# PLEASE KEEP IN SYNC WITH pybind11_protobuf/.pre-commit-config.yaml #
3+
######################################################################
4+
#
5+
# To use:
6+
#
7+
# pre-commit run -a
8+
#
9+
# Or:
10+
#
11+
# pre-commit install # (runs every time you commit in git)
12+
#
13+
# To update this file:
14+
#
15+
# pre-commit autoupdate
16+
#
17+
# See https://github.com/pre-commit/pre-commit
18+
19+
20+
ci:
21+
autoupdate_commit_msg: "chore(deps): update pre-commit hooks"
22+
autofix_commit_msg: "style: pre-commit fixes"
23+
autoupdate_schedule: quarterly
24+
25+
repos:
26+
27+
- repo: https://github.com/pre-commit/pre-commit-hooks
28+
rev: "v4.4.0"
29+
hooks:
30+
- id: check-added-large-files
31+
- id: check-case-conflict
32+
- id: check-docstring-first
33+
- id: check-merge-conflict
34+
- id: check-symlinks
35+
- id: check-toml
36+
- id: check-yaml
37+
- id: debug-statements
38+
- id: end-of-file-fixer
39+
- id: mixed-line-ending
40+
- id: requirements-txt-fixer
41+
- id: trailing-whitespace
42+
exclude: \.patch?$
43+
44+
- repo: https://github.com/cheshirekow/cmake-format-precommit
45+
rev: "v0.6.13"
46+
hooks:
47+
- id: cmake-format
48+
additional_dependencies: [pyyaml]
49+
types: [file]
50+
files: (\.cmake|CMakeLists.txt)(.in)?$

scripts/build_and_run_tests.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,3 @@ echo "Using PYTHON_LIB_PATH: $PYTHON_LIB_PATH"
8282

8383
BAZEL_CXXOPTS="-std=c++14" bazel test ... --test_output=errors
8484
BAZEL_CXXOPTS="-std=c++17" bazel test ... --test_output=errors
85-
86-

0 commit comments

Comments
 (0)