Skip to content

Commit

Permalink
ENH: remove GitPod badge if --no-gitpod
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Aug 12, 2024
1 parent 62a9e96 commit d65150f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

[![BSD 3-Clause license](https://img.shields.io/badge/License-BSD_3--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
[![Spelling checked](https://img.shields.io/badge/cspell-checked-brightgreen.svg)](https://github.com/streetsidesoftware/cspell/tree/master/packages/cspell)
[![GitPod](https://img.shields.io/badge/gitpod-open-blue?logo=gitpod)](https://gitpod.io/#https://github.com/ComPWA/policy)
[![pytest](https://github.com/ComPWA/qrules/workflows/pytest/badge.svg)](https://github.com/ComPWA/qrules/actions?query=branch%3Amain+workflow%3Apytest)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/ComPWA/policy/main.svg)](https://results.pre-commit.ci/latest/github/ComPWA/policy/main)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
Expand Down
3 changes: 2 additions & 1 deletion src/compwa_policy/check_dev_files/gitpod.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
PythonVersion,
get_constraints_file,
)
from compwa_policy.utilities.readme import add_badge
from compwa_policy.utilities.readme import add_badge, remove_badge
from compwa_policy.utilities.yaml import write_yaml


Expand All @@ -22,6 +22,7 @@ def main(no_gitpod: bool, python_version: PythonVersion) -> None:
os.remove(CONFIG_PATH.gitpod)
msg = f"Removed {CONFIG_PATH.gitpod} as requested by --no-gitpod"
raise PrecommitError(msg)
remove_badge(r"\[!\[GitPod\]\(https://img.shields.io/badge/gitpod")
return
error_message = ""
expected_config = _generate_gitpod_config(python_version)
Expand Down

0 comments on commit d65150f

Please sign in to comment.