Skip to content

Commit

Permalink
pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
garymm committed Sep 29, 2023
1 parent 7b280be commit f548517
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
10 changes: 7 additions & 3 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
"""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")

# Register the Go SDK installed on the host.
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")

Expand All @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion protos/databricks.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f548517

Please sign in to comment.