Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 14, 2021
1 parent b7191d3 commit 729e4b3
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions repo_helper/files/readme.py
Expand Up @@ -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(
Expand Down

0 comments on commit 729e4b3

Please sign in to comment.