Skip to content

Commit 0aacba7

Browse files
committed
[bazel] modernize score_tooling
Replace the individual score_* tooling repos with score_tooling, which is the current method to use score-specific checks.
1 parent 3ad3a74 commit 0aacba7

2 files changed

Lines changed: 4 additions & 13 deletions

File tree

BUILD

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
#
1111
# SPDX-License-Identifier: Apache-2.0
1212
# *******************************************************************************
13-
load("@score_cr_checker//:cr_checker.bzl", "copyright_checker")
14-
load("@score_dash_license_checker//:dash.bzl", "dash_license_checker")
15-
load("@score_format_checker//:macros.bzl", "use_format_targets")
13+
load("@score_tooling//:defs.bzl", "copyright_checker", "dash_license_checker", "use_format_targets")
1614
load("//:project_config.bzl", "PROJECT_CONFIG")
1715

1816
copyright_checker(
@@ -26,8 +24,8 @@ copyright_checker(
2624
"//:BUILD",
2725
"//:MODULE.bazel",
2826
],
29-
config = "@score_cr_checker//resources:config",
30-
template = "@score_cr_checker//resources:templates",
27+
config = "@score_tooling//cr_checker/resources:config",
28+
template = "@score_tooling//cr_checker/resources:templates",
3129
visibility = ["//visibility:public"],
3230
)
3331

MODULE.bazel

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,13 @@ module(
1717
repo_name = "bazel_tools_python",
1818
)
1919

20-
# Checker rule for CopyRight checks/fixs
21-
bazel_dep(name = "score_cr_checker", version = "0.3.1", dev_dependency = True)
22-
bazel_dep(name = "score_python_basics", version = "0.3.4", dev_dependency = True)
23-
24-
# Dash license checker
25-
bazel_dep(name = "score_dash_license_checker", version = "0.1.2", dev_dependency = True)
26-
2720
# Format checker
2821
bazel_dep(name = "score_format_checker", version = "0.1.1", dev_dependency = True)
2922
bazel_dep(name = "aspect_rules_lint", version = "1.4.4", dev_dependency = True)
3023
bazel_dep(name = "buildifier_prebuilt", version = "8.2.0.2", dev_dependency = True)
3124

3225
# docs-as-code
33-
bazel_dep(name = "score_docs_as_code", version = "1.0.1", dev_dependency = True)
26+
bazel_dep(name = "score_tooling", version = "1.0.4", dev_dependency = True)
3427
bazel_dep(name = "platforms", version = "0.0.11", dev_dependency = True)
3528

3629
# Unfortunately bazel_skylib can not be dev_dependency because we use some of its libraries.

0 commit comments

Comments
 (0)