File: owlbot.py

package info (click to toggle)
python-google-auth 2.40.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,232 kB
  • sloc: python: 31,383; sh: 80; makefile: 9
file content (29 lines) | stat: -rw-r--r-- 724 bytes parent folder | download
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
import synthtool as s
from synthtool import gcp

common = gcp.CommonTemplates()

# ----------------------------------------------------------------------------
# Add templated files
# ----------------------------------------------------------------------------
templated_files = common.py_library(unit_cov_level=100, cov_level=100)


s.move(
    templated_files / ".kokoro",
    excludes=[
        "continuous/common.cfg",
        "presubmit/common.cfg",
        "build.sh",
        "samples/*",
    ],
)  # just move kokoro configs
s.move(
    # needed by samples kokoro jobs
    templated_files / ".trampolinerc"
)
s.move(
    templated_files / "renovate.json",
)

s.shell.run(["nox", "-s", "blacken"], hide_output=False)