From 729e4b32d994d93e8e7b8147edc08344e128fc94 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 14 Mar 2021 07:36:02 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- repo_helper/files/readme.py | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/repo_helper/files/readme.py b/repo_helper/files/readme.py index 537081b1..9f9316c5 100644 --- a/repo_helper/files/readme.py +++ b/repo_helper/files/readme.py @@ -57,22 +57,24 @@ def rewrite_readme(repo_path: pathlib.Path, templates: jinja2.Environment) -> Li readme_file = PathPlus(repo_path / "README.rst") - shields_block = str(ShieldsBlock( - username=templates.globals["username"], - repo_name=templates.globals["repo_name"], - version=templates.globals["version"], - conda=templates.globals["enable_conda"], - tests=templates.globals["enable_tests"] and not templates.globals["stubs_package"], - docs=templates.globals["enable_docs"], - pypi_name=templates.globals["pypi_name"], - docker_shields=templates.globals["docker_shields"], - docker_name=templates.globals["docker_name"], - platforms=templates.globals["platforms"], - pre_commit=templates.globals["enable_pre_commit"], - on_pypi=templates.globals["on_pypi"], - docs_url=templates.globals["docs_url"], - primary_conda_channel=templates.globals["primary_conda_channel"], - ).make()) + shields_block = str( + ShieldsBlock( + username=templates.globals["username"], + repo_name=templates.globals["repo_name"], + version=templates.globals["version"], + conda=templates.globals["enable_conda"], + tests=templates.globals["enable_tests"] and not templates.globals["stubs_package"], + docs=templates.globals["enable_docs"], + pypi_name=templates.globals["pypi_name"], + docker_shields=templates.globals["docker_shields"], + docker_name=templates.globals["docker_name"], + platforms=templates.globals["platforms"], + pre_commit=templates.globals["enable_pre_commit"], + on_pypi=templates.globals["on_pypi"], + docs_url=templates.globals["docs_url"], + primary_conda_channel=templates.globals["primary_conda_channel"], + ).make() + ) if templates.globals["on_pypi"]: install_block = create_readme_install_block(