From 7ced9e634d118bad5a036ac1ba8222737df4ccbb Mon Sep 17 00:00:00 2001 From: MaximilianSoerenPollak Date: Thu, 20 Aug 2026 08:53:10 +0200 Subject: [PATCH 1/3] fix: formating dependencies --- MODULE.bazel | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MODULE.bazel b/MODULE.bazel index f83c88f6..9ffb25ca 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -18,12 +18,12 @@ module(name = "score_tooling") ############################################################################### bazel_dep(name = "aspect_rules_py", version = "1.4.0") # py_binary/py_library loads in cli_helper.bzl:13, cr_checker.bzl:16, defs.bzl:16, etc. -bazel_dep(name = "aspect_rules_lint", version = "2.5.0", dev_dependency = True) +bazel_dep(name = "aspect_rules_lint", version = "2.5.0") bazel_dep(name = "rules_multitool", version = "1.9.0") bazel_dep(name = "rules_java", version = "8.15.1") # required for dash -bazel_dep(name = "buildifier_prebuilt", version = "8.2.0.2", dev_dependency = True) +bazel_dep(name = "buildifier_prebuilt", version = "8.2.0.2") ## Rules Score bazel_dep(name = "rules_cc", version = "0.2.14") From 1507aa301e76a6c9be1f11975ecff93af92da02d Mon Sep 17 00:00:00 2001 From: MaximilianSoerenPollak Date: Thu, 20 Aug 2026 08:58:56 +0200 Subject: [PATCH 2/3] chore: fix readme --- third_party/format/README.md | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/third_party/format/README.md b/third_party/format/README.md index f17c8219..436b2891 100644 --- a/third_party/format/README.md +++ b/third_party/format/README.md @@ -59,11 +59,7 @@ opt-in so that projects without C++ code do not depend on the LLVM toolchain. Declares this module and includes required dependencies: ```python -module(name = "score_format_checker", version = "0.1.1") - -bazel_dep(name = "aspect_rules_lint", version = "1.0.3") -bazel_dep(name = "buildifier_prebuilt", version = "7.3.1") -bazel_dep(name = "score_rust_policies", version = "0.0.2") +module(name = "score_tooling", version = "2.0.2") ``` --- @@ -72,25 +68,11 @@ bazel_dep(name = "score_rust_policies", version = "0.0.2") ### 1️⃣ Declare the dependency in your project’s `MODULE.bazel`: -```python -bazel_dep(name = "score_format_checker", version = "0.1.1") - -# If using local source: -local_path_override( - module_name = "score_format_checker", - path = "../tooling/format", -) - -# Explicit dependencies required by the macro -bazel_dep(name = "aspect_rules_lint", version = "1.0.3") -bazel_dep(name = "buildifier_prebuilt", version = "7.3.1") -bazel_dep(name = "score_rust_policies", version = "0.0.2") -``` ### 2️⃣ In your project’s `BUILD.bazel`: ```python -load("@score_format_checker//:macros.bzl", "use_format_targets") +load("@score_tooling//third_party/format:macros.bzl", "use_format_targets") use_format_targets() ``` @@ -139,6 +121,7 @@ bazel run @score_tooling//third_party/format:rustfmt_with_policies ## C++ support C++ formatting is opt-in. Enable it by adding `cpp` to the `languages` list: +For this to work you have to have the llvm toolchain in your repository ```python use_format_targets(languages = ["python", "rust", "starlark", "yaml", "cpp"]) From 34ef25ff9168ac31ff2316be54598a8e4716526d Mon Sep 17 00:00:00 2001 From: MaximilianSoerenPollak Date: Thu, 20 Aug 2026 09:00:27 +0200 Subject: [PATCH 3/3] chore: fix formatting --- MODULE.bazel | 3 --- 1 file changed, 3 deletions(-) diff --git a/MODULE.bazel b/MODULE.bazel index 9ffb25ca..d7d25244 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -17,12 +17,9 @@ module(name = "score_tooling") # Core Dependencies ############################################################################### bazel_dep(name = "aspect_rules_py", version = "1.4.0") # py_binary/py_library loads in cli_helper.bzl:13, cr_checker.bzl:16, defs.bzl:16, etc. - bazel_dep(name = "aspect_rules_lint", version = "2.5.0") - bazel_dep(name = "rules_multitool", version = "1.9.0") bazel_dep(name = "rules_java", version = "8.15.1") # required for dash - bazel_dep(name = "buildifier_prebuilt", version = "8.2.0.2") ## Rules Score