Skip to content

Commit

Permalink
DOC: add uv badge
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Oct 14, 2024
1 parent 3749494 commit 5a1ef13
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
[![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)
[![uv](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json)](https://github.com/astral-sh/uv)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)

This repository sets the policies for developer environment in repositories if the [ComPWA organization](https://github.com/ComPWA) (See our [Help developing](https://compwa.github.io/develop) page). The policies are automatically enforced through [pre-commit](https://pre-commit.com).
Expand Down
5 changes: 5 additions & 0 deletions src/compwa_policy/check_dev_files/uv.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from compwa_policy.utilities.executor import Executor
from compwa_policy.utilities.match import git_ls_files, matches_patterns
from compwa_policy.utilities.precommit.struct import Hook, Repo
from compwa_policy.utilities.readme import add_badge

if TYPE_CHECKING:
from compwa_policy.check_dev_files.conda import PackageManagerChoice
Expand All @@ -29,6 +30,10 @@ def main(
) -> None:
if "uv" in package_manager:
with Executor() as do:
do(
add_badge,
"[![uv](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json)](https://github.com/astral-sh/uv)",
)
do(_hide_uv_lock_from_vscode_search)
do(_update_editor_config)
do(_update_python_version_file, dev_python_version)
Expand Down

0 comments on commit 5a1ef13

Please sign in to comment.