blob: 2a525c8eec1bcf9bfefedcc7c372953720598fb7 [file] [log] [blame]
Bu Sun Kime72202e2020-02-19 17:58:47 -08001# Copyright 2020 Google LLC
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15"""This script is used to synthesize generated parts of this library."""
16
17import re
18
19import synthtool as s
20from synthtool import gcp
21
22common = gcp.CommonTemplates()
23
24# ----------------------------------------------------------------------------
25# Add templated files
26# ----------------------------------------------------------------------------
27templated_files = common.py_library(cov_level=100)
Tres Seaver000d0a02020-10-06 15:47:28 -040028s.move(templated_files, excludes=["noxfile.py", ".flake8", ".coveragerc", "setup.cfg"])
29
30# Add pytype support
31s.replace(
32 ".gitignore",
33 """\
34.pytest_cache
35""",
36 """\
37.pytest_cache
38.pytype
39""",
40)