From f5485170a20d92638a43014a135f9060ed066893 Mon Sep 17 00:00:00 2001 From: Gary Miguel Date: Fri, 29 Sep 2023 09:53:36 -0700 Subject: [PATCH] pre-commit fixes --- MODULE.bazel | 10 +++++++--- README.md | 2 ++ protos/databricks.proto | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/MODULE.bazel b/MODULE.bazel index 9562f2d..232b335 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -1,12 +1,15 @@ """Bazel module file. See https://bazel.build/external/overview#bzlmod.""" -module(name = "mlflow_go", version = "0.0.1") +module( + name = "mlflow_go", + version = "0.0.1", +) bazel_dep(name = "rules_proto", version = "5.3.0-21.7", dev_dependency = True) - bazel_dep(name = "protobuf", version = "21.7", dev_dependency = True, repo_name = "com_google_protobuf") bazel_dep(name = "rules_go", version = "0.42.0") + go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk") go_sdk.download(version = "1.21.1") @@ -14,6 +17,7 @@ go_sdk.download(version = "1.21.1") go_sdk.host() bazel_dep(name = "gazelle", version = "0.33.0") + go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps") go_deps.from_file(go_mod = "//:go.mod") @@ -28,8 +32,8 @@ go_deps.module( # All direct deps from go.mod. use_repo( go_deps, - "com_github_stretchr_testify", "com_github_google_uuid", + "com_github_stretchr_testify", "in_gopkg_yaml_v3", "org_golang_google_protobuf", "org_golang_x_tools", diff --git a/README.md b/README.md index 47ee1e9..de73d33 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,8 @@ After a `bazel test //...`, you should be able to find the Go binary like so: find -L bazel-mlflow-go/external -wholename "*/bin/go" ``` +Install [pre-commit](https://pre-commit.com/). + ### Manual tests There are some tests that assume something about the environment. diff --git a/protos/databricks.proto b/protos/databricks.proto index aca49ba..554e7f8 100644 --- a/protos/databricks.proto +++ b/protos/databricks.proto @@ -287,7 +287,7 @@ enum ErrorCode { // Prefer this over CUSTOMER_UNAUTHORIZED, unless you need to keep consistent behavior with legacy // code. // For authorization (AuthZ) errors use PERMISSION_DENIED. - // + // // Maps to: // - google.rpc.Code: UNAUTHENTICATED = 16; // - HTTP code: 401 Unauthorized