-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.bazelrc
More file actions
65 lines (52 loc) · 2.55 KB
/
.bazelrc
File metadata and controls
65 lines (52 loc) · 2.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
common --lockfile_mode=off
common --enable_platform_specific_config
common --java_runtime_version=remotejdk_11
common --registry=https://bcr.bazel.build/
common --registry=https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/
build --incompatible_enable_cc_toolchain_resolution
build --incompatible_default_to_explicit_init_py
build --verbose_failures
test --test_output=errors
common:use_workspace_mode --noenable_bzlmod
common:use_workspace_mode --enable_workspace
# Disable hermetic tmp feature
# The hermetic tmp feature was enabled by default in Bazel 7.0.0, but it is causing issues with bazel coverage and QAC runner.
# This feature was improved in Bazel 7.2.0 (see https://github.com/bazelbuild/bazel/pull/22407).
# Therefore, this flag can be removed after upgrading Bazel to version 7.2.0 or newer.
build --noincompatible_sandbox_hermetic_tmp
coverage --combined_report=lcov
coverage --compilation_mode=dbg
coverage --instrument_test_targets
coverage --instrumentation_filter="[:]"
# Python toolchain configurations
common --flag_alias=python=@rules_python//python/config_settings:python_version
build:python_3_8 --python=3.8
build:python_3_9 --python=3.9
build:python_3_10 --python=3.10
build:python_3_11 --python=3.11
build:python_3_12 --python=3.12
build --config=python_3_12
common --flag_alias=use_internal_toolchains=//bazel/toolchains/python:internal_toolchains
build:use_internal_toolchains --use_internal_toolchains=True
build:do_not_use_internal_toolchains --use_internal_toolchains=False
build --config=use_internal_toolchains
# Pylint configuration
build:pylint --output_groups=python_tool_output
build:pylint --aspects=@bazel_tools_python//quality:defs.bzl%pylint_aspect
# Black configuration
build:black --output_groups=python_tool_output
build:black --aspects=@bazel_tools_python//quality:defs.bzl%black_aspect
# Isort configuration
build:isort --output_groups=python_tool_output
build:isort --aspects=@bazel_tools_python//quality:defs.bzl%isort_aspect
# Mypy configuration
build:mypy --output_groups=python_tool_output
build:mypy --aspects=@bazel_tools_python//quality:defs.bzl%mypy_aspect
# Ruff configuration
build:ruff_check --output_groups=python_tool_output
build:ruff_check --aspects=@bazel_tools_python//quality:defs.bzl%ruff_check_aspect
build:ruff_format --output_groups=python_tool_output
build:ruff_format --aspects=@bazel_tools_python//quality:defs.bzl%ruff_format_aspect
# Clang-format configuration
build:clang_format --output_groups=clang_format_output
build:clang_format --aspects=@score_bazel_tools_cc//quality:defs.bzl%clang_format_aspect