Skip to content

Commit

Permalink
Remove pre-commit.ci badge
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Apr 5, 2021
1 parent 69945b9 commit 1be3164
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 42 deletions.
16 changes: 0 additions & 16 deletions repo_helper/blocks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@
make_docs_last_commit_shield,
make_docs_license_shield,
make_docs_maintained_shield,
make_docs_pre_commit_ci_shield,
make_docs_pre_commit_shield,
make_docs_pypi_downloads_shield,
make_docs_pypi_version_shield,
make_docs_python_implementations_shield,
Expand All @@ -75,8 +73,6 @@
make_last_commit_shield,
make_license_shield,
make_maintained_shield,
make_pre_commit_ci_shield,
make_pre_commit_shield,
make_pypi_downloads_shield,
make_pypi_version_shield,
make_python_implementations_shield,
Expand Down Expand Up @@ -311,7 +307,6 @@ class ShieldsBlock:
:param docker_shields: Whether to show shields for Docker. Default :py:obj:`False`.
:param docker_name: The name of the Docker image on DockerHub.
:param platforms: List of supported platforms.
:param pre_commit: Whether to show a shield for pre-commit
:param on_pypi:
:param primary_conda_channel: The Conda channel the package can be downloaded from.
Expand Down Expand Up @@ -357,8 +352,6 @@ class ShieldsBlock:
"docker_build",
"docker_automated",
"docker_size",
"pre_commit",
"pre_commit_ci",
)

def __init__(
Expand Down Expand Up @@ -396,7 +389,6 @@ def __init__(
self.docker_shields: bool = docker_shields
self.docker_name: str = str(docker_name)
self.platforms: Iterable[str] = set(platforms or ())
self.pre_commit: bool = pre_commit
self.on_pypi: bool = on_pypi
self.primary_conda_channel: str = primary_conda_channel or self.username

Expand All @@ -421,8 +413,6 @@ def set_readme_mode(self) -> None:
self.make_last_commit_shield = make_last_commit_shield
self.make_license_shield = make_license_shield
self.make_maintained_shield = make_maintained_shield
self.make_pre_commit_ci_shield = make_pre_commit_ci_shield
self.make_pre_commit_shield = make_pre_commit_shield
self.make_pypi_version_shield = make_pypi_version_shield
self.make_python_implementations_shield = make_python_implementations_shield
self.make_python_versions_shield = make_python_versions_shield
Expand Down Expand Up @@ -450,8 +440,6 @@ def set_docs_mode(self) -> None:
self.make_last_commit_shield = make_docs_last_commit_shield
self.make_license_shield = make_docs_license_shield
self.make_maintained_shield = make_docs_maintained_shield
self.make_pre_commit_ci_shield = make_docs_pre_commit_ci_shield
self.make_pre_commit_shield = make_docs_pre_commit_shield
self.make_pypi_version_shield = make_docs_pypi_version_shield
self.make_python_implementations_shield = make_docs_python_implementations_shield
self.make_python_versions_shield = make_docs_python_versions_shield
Expand Down Expand Up @@ -534,10 +522,6 @@ def make(self) -> StringList:
sections["Tests"].append("coveralls")
substitutions["coveralls"] = self.make_coveralls_shield(repo_name, username)

if self.pre_commit:
sections["QA"].append("pre_commit_ci")
substitutions["pre_commit_ci"] = self.make_pre_commit_ci_shield(repo_name, username)

if self.on_pypi:
sections["PyPI"] = ["pypi-version", "supported-versions", "supported-implementations", "wheel"]
substitutions["pypi-version"] = self.make_pypi_version_shield(pypi_name)
Expand Down
10 changes: 2 additions & 8 deletions repo_helper/blocks/docs_shields_block_template.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
{% if "Windows" in platforms %}|actions_windows{{ unique_name }}| {% endif %}\
{% if "macOS" in platforms %}|actions_macos{{ unique_name }}| {% endif %}\
{% if tests %}|coveralls{{ unique_name }}| {% endif %}\
|codefactor{{ unique_name }}|\
{% if pre_commit %} |pre_commit_ci{{ unique_name }}|{% endif %}
|codefactor{{ unique_name }}|
{% if on_pypi %}* - PyPI
- |pypi-version{{ unique_name }}| |supported-versions{{ unique_name }}| |supported-implementations{{ unique_name }}| |wheel{{ unique_name }}|{% endif %}
{% if conda %}* - Anaconda
Expand All @@ -22,8 +21,7 @@
{% if docker_shields %}* - Docker
- |docker_build{{ unique_name }}| |docker_automated{{ unique_name }}| |docker_size{{ unique_name }}|
{% endif %}* - Other
- |license{{ unique_name }}| |language{{ unique_name }}| |requires{{ unique_name }}|\
{% if pre_commit %} |pre_commit{{ unique_name }}|{% endif %}
- |license{{ unique_name }}| |language{{ unique_name }}| |requires{{ unique_name }}|

{% if docs %}.. |docs{{ unique_name }}| {{ make_rtfd_shield(repo_name)[3:] }}

Expand Down Expand Up @@ -68,9 +66,5 @@
.. |docker_automated{{ unique_name }}| {{ make_docker_automated_build_shield(docker_name, username)[3:] }}
.. |docker_size{{ unique_name }}| {{ make_docker_size_shield(docker_name, username)[3:] }}
{% endif %}{% if pre_commit %}
.. |pre_commit{{ unique_name }}| {{ make_pre_commit_shield()[3:] }}
.. |pre_commit_ci{{ unique_name }}| {{ make_pre_commit_ci_shield(repo_name, username)[3:] }}
{% endif %}
.. end shields
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<td><a href="https://github.com/octocat/hello-world/commit/master" rel="nofollow"><img alt="GitHub last commit" src="https://img.shields.io/github/last-commit/octocat/hello-world"></a> <a href="https://github.com/octocat/hello-world/pulse" rel="nofollow"><img alt="GitHub commits since tagged version" src="https://img.shields.io/github/commits-since/octocat/hello-world/v1.2.3"></a> <img alt="Maintenance" src="https://img.shields.io/maintenance/yes/2020"> <a href="https://pypi.org/project/hello-world/" rel="nofollow"><img alt="PyPI - Downloads" src="https://img.shields.io/pypi/dm/hello-world"></a></td>
</tr>
<tr><th>QA</th>
<td><a href="https://www.codefactor.io/repository/github/octocat/hello-world" rel="nofollow"><img alt="CodeFactor Grade" src="https://img.shields.io/codefactor/grade/github/octocat/hello-world?logo=codefactor"></a> <a href="https://github.com/octocat/hello-world/actions?query=workflow%3A%22Flake8%22" rel="nofollow"><img alt="Flake8 Status" src="https://github.com/octocat/hello-world/workflows/Flake8/badge.svg"></a> <a href="https://github.com/octocat/hello-world/actions?query=workflow%3A%22mypy%22" rel="nofollow"><img alt="mypy status" src="https://github.com/octocat/hello-world/workflows/mypy/badge.svg"></a> <a href="https://results.pre-commit.ci/latest/github/octocat/hello-world/master" rel="nofollow"><img alt="pre-commit.ci status" src="https://results.pre-commit.ci/badge/github/octocat/hello-world/master.svg"></a></td>
<td><a href="https://www.codefactor.io/repository/github/octocat/hello-world" rel="nofollow"><img alt="CodeFactor Grade" src="https://img.shields.io/codefactor/grade/github/octocat/hello-world?logo=codefactor"></a> <a href="https://github.com/octocat/hello-world/actions?query=workflow%3A%22Flake8%22" rel="nofollow"><img alt="Flake8 Status" src="https://github.com/octocat/hello-world/workflows/Flake8/badge.svg"></a> <a href="https://github.com/octocat/hello-world/actions?query=workflow%3A%22mypy%22" rel="nofollow"><img alt="mypy status" src="https://github.com/octocat/hello-world/workflows/mypy/badge.svg"></a></td>
</tr>
<tr><th>Other</th>
<td><a href="https://github.com/octocat/hello-world/blob/master/LICENSE" rel="nofollow"><img alt="License" src="https://img.shields.io/github/license/octocat/hello-world"></a> <img alt="GitHub top language" src="https://img.shields.io/github/languages/top/octocat/hello-world"> <a href="https://requires.io/github/octocat/hello-world/requirements/?branch=master" rel="nofollow"><img alt="Requirements Status" src="https://requires.io/github/octocat/hello-world/requirements.svg?branch=master"></a></td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ repo_helper
* - Activity
- |commits-latest| |commits-since| |maintained| |pypi-downloads|
* - QA
- |codefactor| |actions_flake8| |actions_mypy| |pre_commit_ci|
- |codefactor| |actions_flake8| |actions_mypy|
* - Other
- |license| |language| |requires|

Expand Down Expand Up @@ -107,10 +107,6 @@ repo_helper
:target: https://pypi.org/project/hello-world/
:alt: PyPI - Downloads

.. |pre_commit_ci| image:: https://results.pre-commit.ci/badge/github/octocat/hello-world/master.svg
:target: https://results.pre-commit.ci/latest/github/octocat/hello-world/master
:alt: pre-commit.ci status

.. end shields
Installation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<td><a href="https://github.com/octocat/hello-world/commit/master" rel="nofollow"><img alt="GitHub last commit" src="https://img.shields.io/github/last-commit/octocat/hello-world"></a> <a href="https://github.com/octocat/hello-world/pulse" rel="nofollow"><img alt="GitHub commits since tagged version" src="https://img.shields.io/github/commits-since/octocat/hello-world/v1.2.3"></a> <img alt="Maintenance" src="https://img.shields.io/maintenance/yes/2020"> <a href="https://pypi.org/project/hello-world/" rel="nofollow"><img alt="PyPI - Downloads" src="https://img.shields.io/pypi/dm/hello-world"></a></td>
</tr>
<tr><th>QA</th>
<td><a href="https://www.codefactor.io/repository/github/octocat/hello-world" rel="nofollow"><img alt="CodeFactor Grade" src="https://img.shields.io/codefactor/grade/github/octocat/hello-world?logo=codefactor"></a> <a href="https://github.com/octocat/hello-world/actions?query=workflow%3A%22Flake8%22" rel="nofollow"><img alt="Flake8 Status" src="https://github.com/octocat/hello-world/workflows/Flake8/badge.svg"></a> <a href="https://github.com/octocat/hello-world/actions?query=workflow%3A%22mypy%22" rel="nofollow"><img alt="mypy status" src="https://github.com/octocat/hello-world/workflows/mypy/badge.svg"></a> <a href="https://results.pre-commit.ci/latest/github/octocat/hello-world/master" rel="nofollow"><img alt="pre-commit.ci status" src="https://results.pre-commit.ci/badge/github/octocat/hello-world/master.svg"></a></td>
<td><a href="https://www.codefactor.io/repository/github/octocat/hello-world" rel="nofollow"><img alt="CodeFactor Grade" src="https://img.shields.io/codefactor/grade/github/octocat/hello-world?logo=codefactor"></a> <a href="https://github.com/octocat/hello-world/actions?query=workflow%3A%22Flake8%22" rel="nofollow"><img alt="Flake8 Status" src="https://github.com/octocat/hello-world/workflows/Flake8/badge.svg"></a> <a href="https://github.com/octocat/hello-world/actions?query=workflow%3A%22mypy%22" rel="nofollow"><img alt="mypy status" src="https://github.com/octocat/hello-world/workflows/mypy/badge.svg"></a></td>
</tr>
<tr><th>Other</th>
<td><a href="https://github.com/octocat/hello-world/blob/master/LICENSE" rel="nofollow"><img alt="License" src="https://img.shields.io/github/license/octocat/hello-world"></a> <img alt="GitHub top language" src="https://img.shields.io/github/languages/top/octocat/hello-world"> <a href="https://requires.io/github/octocat/hello-world/requirements/?branch=master" rel="nofollow"><img alt="Requirements Status" src="https://requires.io/github/octocat/hello-world/requirements.svg?branch=master"></a></td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ repo_helper
* - Activity
- |commits-latest| |commits-since| |maintained| |pypi-downloads|
* - QA
- |codefactor| |actions_flake8| |actions_mypy| |pre_commit_ci|
- |codefactor| |actions_flake8| |actions_mypy|
* - Other
- |license| |language| |requires|

Expand Down Expand Up @@ -107,10 +107,6 @@ repo_helper
:target: https://pypi.org/project/hello-world/
:alt: PyPI - Downloads

.. |pre_commit_ci| image:: https://results.pre-commit.ci/badge/github/octocat/hello-world/master.svg
:target: https://results.pre-commit.ci/latest/github/octocat/hello-world/master
:alt: pre-commit.ci status

.. end shields
Installation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<td><a href="https://github.com/octocat/hello-world/commit/master" rel="nofollow"><img alt="GitHub last commit" src="https://img.shields.io/github/last-commit/octocat/hello-world"></a> <a href="https://github.com/octocat/hello-world/pulse" rel="nofollow"><img alt="GitHub commits since tagged version" src="https://img.shields.io/github/commits-since/octocat/hello-world/v1.2.3"></a> <img alt="Maintenance" src="https://img.shields.io/maintenance/yes/2020"> <a href="https://pypi.org/project/hello-world/" rel="nofollow"><img alt="PyPI - Downloads" src="https://img.shields.io/pypi/dm/hello-world"></a></td>
</tr>
<tr><th>QA</th>
<td><a href="https://www.codefactor.io/repository/github/octocat/hello-world" rel="nofollow"><img alt="CodeFactor Grade" src="https://img.shields.io/codefactor/grade/github/octocat/hello-world?logo=codefactor"></a> <a href="https://github.com/octocat/hello-world/actions?query=workflow%3A%22Flake8%22" rel="nofollow"><img alt="Flake8 Status" src="https://github.com/octocat/hello-world/workflows/Flake8/badge.svg"></a> <a href="https://github.com/octocat/hello-world/actions?query=workflow%3A%22mypy%22" rel="nofollow"><img alt="mypy status" src="https://github.com/octocat/hello-world/workflows/mypy/badge.svg"></a> <a href="https://results.pre-commit.ci/latest/github/octocat/hello-world/master" rel="nofollow"><img alt="pre-commit.ci status" src="https://results.pre-commit.ci/badge/github/octocat/hello-world/master.svg"></a></td>
<td><a href="https://www.codefactor.io/repository/github/octocat/hello-world" rel="nofollow"><img alt="CodeFactor Grade" src="https://img.shields.io/codefactor/grade/github/octocat/hello-world?logo=codefactor"></a> <a href="https://github.com/octocat/hello-world/actions?query=workflow%3A%22Flake8%22" rel="nofollow"><img alt="Flake8 Status" src="https://github.com/octocat/hello-world/workflows/Flake8/badge.svg"></a> <a href="https://github.com/octocat/hello-world/actions?query=workflow%3A%22mypy%22" rel="nofollow"><img alt="mypy status" src="https://github.com/octocat/hello-world/workflows/mypy/badge.svg"></a></td>
</tr>
<tr><th>Other</th>
<td><a href="https://github.com/octocat/hello-world/blob/master/LICENSE" rel="nofollow"><img alt="License" src="https://img.shields.io/github/license/octocat/hello-world"></a> <img alt="GitHub top language" src="https://img.shields.io/github/languages/top/octocat/hello-world"> <a href="https://requires.io/github/octocat/hello-world/requirements/?branch=master" rel="nofollow"><img alt="Requirements Status" src="https://requires.io/github/octocat/hello-world/requirements.svg?branch=master"></a></td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ repo_helper
* - Activity
- |commits-latest| |commits-since| |maintained| |pypi-downloads|
* - QA
- |codefactor| |actions_flake8| |actions_mypy| |pre_commit_ci|
- |codefactor| |actions_flake8| |actions_mypy|
* - Other
- |license| |language| |requires|

Expand Down Expand Up @@ -107,10 +107,6 @@ repo_helper
:target: https://pypi.org/project/hello-world/
:alt: PyPI - Downloads

.. |pre_commit_ci| image:: https://results.pre-commit.ci/badge/github/octocat/hello-world/master.svg
:target: https://results.pre-commit.ci/latest/github/octocat/hello-world/master
:alt: pre-commit.ci status

.. end shields
Installation
Expand Down

0 comments on commit 1be3164

Please sign in to comment.