Skip to content

Commit

Permalink
[hotfix] Revert "Merge branch 'buf-check-pre-commit' into 'master'"
Browse files Browse the repository at this point in the history
  • Loading branch information
levsha committed Apr 19, 2023
1 parent 9ea7845 commit 547382c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 44 deletions.
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ repos:
- repo: https://gitlab.com/dfinity-lab/open/pre-commit-tools.git
rev: 17101bf5cebeda988b13764909a6140badc5ef03
hooks:
- id: buf-checks
args: ["--config=buf.yaml"]
exclude: |
(?x)(
)
- id: nixpkgs-fmt
exclude: |
(?x)^(
Expand Down
22 changes: 0 additions & 22 deletions pre-commit/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -60,28 +60,6 @@ sh_test(
],
)

sh_test(
name = "buf-breaking",
size = "small",
srcs = ["buf-breaking.sh"],
data = [
"//:WORKSPACE.bazel",
"//:buf.yaml",
"@buf",
],
env = {
# Hack to escape the sandbox and grep on the actual repository
"WORKSPACE": "$(rootpath //:WORKSPACE.bazel)",
"buf_path": "$(rootpath @buf//:buf)",
"buf_config": "$(rootpath //:buf.yaml)",
},
tags = [
"external", # force test to be unconditionally executed.
"local", # precludes the action or test from being remotely cached, remotely executed, or run inside the sandbox.
"smoke", # it should be run before committing code changes into the version control system.
],
)

sh_test(
name = "shellcheck",
size = "small",
Expand Down
22 changes: 0 additions & 22 deletions pre-commit/buf-breaking.sh

This file was deleted.

0 comments on commit 547382c

Please sign in to comment.