Skip to content

Commit 3d9d7a8

Browse files
feat: drop old multitool targets
1 parent 61691b4 commit 3d9d7a8

11 files changed

Lines changed: 8 additions & 298 deletions

File tree

MODULE.bazel

Lines changed: 8 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@
1111
# SPDX-License-Identifier: Apache-2.0
1212
# *******************************************************************************
1313

14-
module(
15-
name = "score_tooling",
16-
version = "0.0.0",
17-
compatibility_level = 1,
18-
)
14+
module(name = "score_tooling")
1915

2016
###############################################################################
2117
# Core Dependencies
@@ -28,7 +24,7 @@ bazel_dep(name = "aspect_rules_lint", version = "1.5.3")
2824
bazel_dep(name = "rules_shell", version = "0.5.0")
2925
bazel_dep(name = "rules_java", version = "8.15.1")
3026
bazel_dep(name = "rules_rust", version = "0.61.0")
31-
bazel_dep(name = "rules_multitool", version = "1.9.0")
27+
bazel_dep(name = "rules_multitool", version = "1.9.0", dev_dependency = True)
3228
bazel_dep(name = "score_rust_policies", version = "0.0.2")
3329
bazel_dep(name = "bazel_skylib", version = "1.7.1")
3430
bazel_dep(name = "buildifier_prebuilt", version = "8.2.0.2")
@@ -151,51 +147,19 @@ pip.parse(
151147
)
152148
use_repo(pip, "pip_tooling")
153149

154-
###############################################################################
155-
# Multitool Hub (for ruff, pyright, actionlint, etc.)
156-
###############################################################################
157-
multitool = use_extension("@rules_multitool//multitool:extension.bzl", "multitool")
158-
159-
#python_basics
160-
multitool.hub(lockfile = "python_basics/multitool.lock.json")
161-
use_repo(multitool, "multitool")
162-
163-
# Ruff Hub
164-
multitool.hub(
165-
hub_name = "ruff_hub",
166-
lockfile = "tools/ruff.lock.json",
167-
)
168-
use_repo(multitool, "ruff_hub")
169-
170-
# Actionlint Hub
171-
multitool.hub(
172-
hub_name = "actionlint_hub",
173-
lockfile = "tools/actionlint.lock.json",
174-
)
175-
use_repo(multitool, "actionlint_hub")
176-
177-
# Shellcheck Hub
178-
multitool.hub(
179-
hub_name = "shellcheck_hub",
180-
lockfile = "tools/shellcheck.lock.json",
181-
)
182-
use_repo(multitool, "shellcheck_hub")
183-
184-
# YAMLfmt Hub
185-
multitool.hub(
186-
hub_name = "yamlfmt_hub",
187-
lockfile = "tools/yamlfmt.lock.json",
188-
)
189-
use_repo(multitool, "yamlfmt_hub")
190-
191150
register_toolchains(
192151
"//bazel/rules/rules_score:sphinx_default_toolchain",
193152
)
194153

195154
###############################################################################
196155
# Dev Dependencies (for testing)
197156
###############################################################################
198-
bazel_dep(name = "score_docs_as_code", version = "3.0.1", dev_dependency = True)
157+
bazel_dep(name = "score_docs_as_code", dev_dependency = True)
158+
git_override(
159+
module_name = "score_docs_as_code",
160+
remote = "https://github.com/eclipse-score/docs-as-code.git",
161+
commit = "4a05a739e56fbc8bf41b8445f3ac2b84db85bdd8",
162+
)
199163

200164
###############################################################################
201165
# Dependencies for Manual Analysis
@@ -219,4 +183,3 @@ git_override(
219183
module_name = "lobster",
220184
commit = "56881461f9d3fde2918d1731aa5937aaf64cd67c",
221185
remote = "https://github.com/bmw-software-engineering/lobster.git",
222-
)

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ See the individual README files for detailed usage instructions and configuratio
2929
| **format_checker** | Code formatting validation | [README](format_checker/README.md) |
3030
| **python_basics** | Python development utilities and testing | [README](python_basics/README.md) |
3131
| **starpls** | Starlark language server support | [README](starpls/README.md) |
32-
| **tools** | Formatters & Linters | [README](tools/README.md) |
3332
| **coverage** | Ferrocene Rust coverage workflow | [README](coverage/README.md) |
3433

3534
## Usage Examples

format_checker/macros.bzl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,16 @@ load("@aspect_rules_lint//format:defs.bzl", "format_multirun", "format_test")
1515
def use_format_targets(fix_name = "format.fix", check_name = "format.check"):
1616
format_multirun(
1717
name = fix_name,
18-
python = "@aspect_rules_lint//format:ruff",
1918
rust = "@score_tooling//format_checker:rustfmt_with_policies",
2019
starlark = "@buildifier_prebuilt//:buildifier",
21-
yaml = "@aspect_rules_lint//format:yamlfmt",
2220
visibility = ["//visibility:public"],
2321
)
2422

2523
format_test(
2624
name = check_name,
2725
no_sandbox = True,
28-
python = "@aspect_rules_lint//format:ruff",
2926
rust = "@score_tooling//format_checker:rustfmt_with_policies",
3027
starlark = "@buildifier_prebuilt//:buildifier",
31-
yaml = "@aspect_rules_lint//format:yamlfmt",
3228
workspace = "//:MODULE.bazel",
3329
visibility = ["//visibility:public"],
3430
)

python_basics/multitool.lock.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

tools/BUILD

Lines changed: 0 additions & 47 deletions
This file was deleted.

tools/README.md

Lines changed: 0 additions & 50 deletions
This file was deleted.

tools/actionlint.lock.json

Lines changed: 0 additions & 25 deletions
This file was deleted.

tools/ruff.lock.json

Lines changed: 0 additions & 25 deletions
This file was deleted.

tools/sample.sh

Lines changed: 0 additions & 36 deletions
This file was deleted.

tools/shellcheck.lock.json

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)