8000 chore: [autoapprove] update readme_gen.py to include autoescape True … · googleapis/python-test-utils@6b24ce0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6b24ce0

Browse files
chore: [autoapprove] update readme_gen.py to include autoescape True (#98)
* chore: [autoapprove] update readme_gen.py to include autoescape True Source-Link: googleapis/synthtool@6b4d5a6 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:f792ee1320e03eda2d13a5281a2989f7ed8a9e50b73ef6da97fac7e1e850b149 * ci: use python 3.8 Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent 8dc41d8 commit 6b24ce0

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

.github/.OwlBot.lock.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
# limitations under the License.
1414
docker:
1515
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
16-
digest: sha256:bc5eed3804aec2f05fad42aacf973821d9500c174015341f721a984a0825b6fd
17-
# created: 2022-04-21T15:43:16.246106921Z
16+
digest: sha256:f792ee1320e03eda2d13a5281a2989f7ed8a9e50b73ef6da97fac7e1e850b149
17+
# created: 2022-05-05T15:17:27.599381182Z

noxfile.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,29 @@
3333
]
3434

3535

36+
# Error if a python version is missing
37+
nox.options.error_on_missing_interpreters = True
38+
3639
BLACK_VERSION = "black==19.3b0"
3740
BLACK_PATHS = ["test_utils", "setup.py"]
3841
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
3942

4043

41-
@nox.session(python="3.7")
44+
@nox.session(python="3.8")
4245
def lint(session):
4346
"""Run linters.
4447
4548
Returns a failure if the linters find linting errors or sufficiently
4649
serious code quality issues.
4750
"""
48-
session.install("flake8", BLACK_VERSION)
51+
session.install("flake8", BLACK_VERSION, "click<8.1.0")
4952
session.run(
5053
"black", "--check", *BLACK_PATHS,
5154
)
5255
session.run("flake8", *BLACK_PATHS)
5356

5457

55-
@nox.session(python="3.6")
58+
@nox.session(python="3.8")
5659
def blacken(session):
5760
"""Run black.
5861
@@ -62,20 +65,20 @@ def blacken(session):
6265
That run uses an image that doesn't have 3.6 installed. Before updating this
6366
check the state of the `gcp_ubuntu_config` we use for that Kokoro run.
6467
"""
65-
session.install(BLACK_VERSION)
68+
session.install(BLACK_VERSION, "click<8.1.0")
6669
session.run(
6770
"black", *BLACK_PATHS,
6871
)
6972

7073

71-
@nox.session(python="3.7")
74+
@nox.session(python="3.8")
7275
def lint_setup_py(session):
7376
"""Verify that setup.py is valid (including RST check)."""
7477
session.install("docutils", "pygments")
7578
session.run("python", "setup.py", "check", "--restructuredtext", "--strict")
7679

7780

78-
@nox.session(python="3.6")
81+
@nox.session(python="3.8")
7982
def mypy(session):
8083
"""Verify type hints are mypy compatible."""
8184
session.install("-e", ".")

scripts/readme-gen/readme_gen.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@
2828
jinja_env = jinja2.Environment(
2929
trim_blocks=True,
3030
loader=jinja2.FileSystemLoader(
31-
os.path.abspath(os.path.join(os.path.dirname(__file__), 'templates'))))
31+
os.path.abspath(os.path.join(os.path.dirname(__file__), "templates"))
32+
),
33+
autoescape=True,
34+
)
3235

3336
README_TMPL = jinja_env.get_template('README.tmpl.rst')
3437

0 commit comments

Comments
 (0)
0