|
| 1 | +# ******************************************************************************* |
| 2 | +# Copyright (c) 2025 Contributors to the Eclipse Foundation |
| 3 | +# |
| 4 | +# See the NOTICE file(s) distributed with this work for additional |
| 5 | +# information regarding copyright ownership. |
| 6 | +# |
| 7 | +# This program and the accompanying materials are made available under the |
| 8 | +# terms of the Apache License Version 2.0 which is available at |
| 9 | +# https://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# SPDX-License-Identifier: Apache-2.0 |
| 12 | +# ******************************************************************************* |
| 13 | + |
| 14 | +############################################################################### |
| 15 | +# |
| 16 | +# Packaging dependencies |
| 17 | +# |
| 18 | +############################################################################### |
| 19 | +bazel_dep(name = "rules_pkg", version = "1.0.1") |
| 20 | + |
| 21 | +############################################################################### |
| 22 | +# |
| 23 | +# Python version |
| 24 | +# |
| 25 | +############################################################################### |
| 26 | +bazel_dep(name = "rules_python", version = "1.0.0") |
| 27 | + |
| 28 | +PYTHON_VERSION = "3.12" |
| 29 | + |
| 30 | +python = use_extension("@rules_python//python/extensions:python.bzl", "python") |
| 31 | +python.toolchain( |
| 32 | + configure_coverage_tool = True, |
| 33 | + is_default = True, |
| 34 | + python_version = PYTHON_VERSION, |
| 35 | +) |
| 36 | +use_repo(python) |
| 37 | + |
| 38 | +# Additional Python rules provided by aspect, e.g. an improved version of |
| 39 | +bazel_dep(name = "aspect_rules_py", version = "1.0.0") |
| 40 | +bazel_dep(name = "buildifier_prebuilt", version = "7.3.1") |
| 41 | + |
| 42 | +############################################################################### |
| 43 | +# |
| 44 | +# Generic linting and formatting rules |
| 45 | +# |
| 46 | +############################################################################### |
| 47 | +bazel_dep(name = "aspect_rules_lint", version = "1.3.1") |
| 48 | + |
| 49 | +# Provides, pytest & venv |
| 50 | +bazel_dep(name = "score_python_basics", version = "0.3.0") |
| 51 | + |
| 52 | +# Checker rule for CopyRight checks/fixes |
| 53 | +bazel_dep(name = "score_cr_checker", version = "0.2.2") |
| 54 | +bazel_dep(name = "score_docs_as_code", version = "0.2.1") |
| 55 | +bazel_dep(name = "score_format_checker", version = "0.1.1") |
0 commit comments