blob: 5c590e4ca3912fe789fe5ac623da6fd368655cdc [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
Bu Sun Kime72202e2020-02-19 17:58:47 -080017import synthtool as s
18from synthtool import gcp
19
20common = gcp.CommonTemplates()
21
22# ----------------------------------------------------------------------------
23# Add templated files
24# ----------------------------------------------------------------------------
25templated_files = common.py_library(cov_level=100)
Tres Seaver000d0a02020-10-06 15:47:28 -040026s.move(templated_files, excludes=["noxfile.py", ".flake8", ".coveragerc", "setup.cfg"])
27
28# Add pytype support
29s.replace(
30 ".gitignore",
31 """\
32.pytest_cache
33""",
34 """\
35.pytest_cache
36.pytype
37""",
38)
Tres Seaverfbf447c2021-06-16 13:45:41 -040039
40s.shell.run(["nox", "-s", "blacken"], hide_output=False)