blob: 58aa53a70f9684ad8f9434303549786ab9d18d90 [file] [log] [blame]
Bu Sun Kim65e33c02019-10-25 10:45:00 -07001import 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)
Tres Seaverb76f1512021-08-13 18:37:08 -040010
11
Yoshi Automation Bot218a1592020-07-06 13:59:22 -070012s.move(
13 templated_files / ".kokoro",
14 excludes=[
Bu Sun Kim621f54b2021-01-22 13:43:41 -070015 "continuous/common.cfg",
16 "presubmit/common.cfg",
17 "build.sh",
Yoshi Automation Bot218a1592020-07-06 13:59:22 -070018 ],
19) # just move kokoro configs
Tres Seaverb76f1512021-08-13 18:37:08 -040020
21
22assert 1 == s.replace(
23 ".kokoro/docs/docs-presubmit.cfg",
24 'value: "docs docfx"',
25 'value: "docs"',
26)
27
Tres Seaverb76f1512021-08-13 18:37:08 -040028s.shell.run(["nox", "-s", "blacken"], hide_output=False)