From 440af91c429d94beae953a7e420533dc60215c13 Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Tue, 13 Aug 2024 09:34:01 +0200 Subject: [PATCH] ENH: automatically remove `pixi` settings in VSCode --- src/compwa_policy/check_dev_files/pixi.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/compwa_policy/check_dev_files/pixi.py b/src/compwa_policy/check_dev_files/pixi.py index 91579734..20711a37 100644 --- a/src/compwa_policy/check_dev_files/pixi.py +++ b/src/compwa_policy/check_dev_files/pixi.py @@ -407,6 +407,10 @@ def ___outsource_cmd(task: Table, other_task_name: str) -> bool: def _remove_pixi_configuration() -> None: with Executor() as do, ModifiablePyproject.load() as pyproject: do(__remove_pixi_configuration, pyproject) + do( + vscode.remove_settings, + {"files.associations": ["**/pixi.lock", "pixi.lock"]}, + ) def __remove_pixi_configuration(pyproject: ModifiablePyproject) -> None: