Skip to content

Commit

Permalink
ENH: add Pixi badge
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Oct 14, 2024
1 parent 5a1ef13 commit 416fce7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/compwa_policy/check_dev_files/pixi/_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
complies_with_subset,
)
from compwa_policy.utilities.python import split_dependency_definition
from compwa_policy.utilities.readme import add_badge
from compwa_policy.utilities.toml import to_toml_array

if TYPE_CHECKING:
Expand All @@ -44,6 +45,10 @@ def update_pixi_configuration(
config_path = CONFIG_PATH.pixi_toml
CONFIG_PATH.pixi_toml.touch()
with Executor() as do, ModifiablePyproject.load(config_path) as config:
do(
add_badge,
"[![Pixi Badge](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/prefix-dev/pixi/main/assets/badge/v0.json)](https://pixi.sh)",
)
do(_define_minimal_project, config)
do(_import_conda_dependencies, config)
do(_import_conda_environment, config)
Expand Down

0 comments on commit 416fce7

Please sign in to comment.