forked from snowflakedb/snowflake-ml-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bazelrc
46 lines (32 loc) · 1.67 KB
/
.bazelrc
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
# Common Default
# Wrapper to make sure tests are run.
test --run_under='//bazel:test_wrapper'
# Since integration tests are located in different packages than code under test,
# the default instrumentation filter would exclude the code under test. This
# makes bazel consider all the source code in our repo for coverage.
coverage --instrumentation_filter="-//tests[/:]"
# Internal definitions
# Make the target platform and the host platform the same
build:_build --platforms //bazel/platforms:snowflake_conda_env --host_platform //bazel/platforms:snowflake_conda_env --repo_env=BAZEL_CONDA_ENV_NAME=build
build:_sf_only --platforms //bazel/platforms:snowflake_conda_env --host_platform //bazel/platforms:snowflake_conda_env --repo_env=BAZEL_CONDA_ENV_NAME=sf_only
build:_extended --platforms //bazel/platforms:extended_conda_env --host_platform //bazel/platforms:extended_conda_env --repo_env=BAZEL_CONDA_ENV_NAME=extended
# Public definitions
# Python environment flag, should use in combination with other configs
build:py3.8 --repo_env=BAZEL_CONDA_PYTHON_VERSION=3.8
build:py3.9 --repo_env=BAZEL_CONDA_PYTHON_VERSION=3.9
build:py3.10 --repo_env=BAZEL_CONDA_PYTHON_VERSION=3.10
# Default
build --config=_build
test --config=_sf_only
run --config=_sf_only
cquery --config=_sf_only
# Config to sync files
run:pre_build --config=_build --config=py3.8
# Config to run type check
build:typecheck --aspects @rules_mypy//:mypy.bzl%mypy_aspect --output_groups=mypy --config=_extended --config=py3.8
# Config to build the doc
build:docs --config=_sf_only --config=py3.8
# Public the extended setting
test:extended --config=_extended
run:extended --config=_extended
cquery:extended --config=_extended