• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1import synthtool as s
2from synthtool import gcp
3
4common = gcp.CommonTemplates()
5
6# ----------------------------------------------------------------------------
7# Add templated files
8# ----------------------------------------------------------------------------
9templated_files = common.py_library(unit_cov_level=100, cov_level=100)
10
11
12s.move(
13    templated_files / ".kokoro",
14    excludes=[
15        "continuous/common.cfg",
16        "presubmit/common.cfg",
17        "build.sh",
18    ],
19)  # just move kokoro configs
20s.move(
21    # needed by samples kokoro jobs
22    templated_files / ".trampolinerc"
23)
24
25
26assert 1 == s.replace(
27    ".kokoro/docs/docs-presubmit.cfg",
28    'value: "docs docfx"',
29    'value: "docs"',
30)
31
32s.shell.run(["nox", "-s", "blacken"], hide_output=False)
33