From 688e9b866c95b21d4e1c957b7c0ca354e0c3381d Mon Sep 17 00:00:00 2001 From: Lars Kaiser Date: Sun, 27 Sep 2026 22:05:27 +0200 Subject: [PATCH 1/3] Prevent prettier from formatting pixi env and lock files --- .gitignore | 4 ++++ .prettierignore | 1 + package.json | 2 +- test/fixtures/pixi-project/.gitignore | 3 --- 4 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 .prettierignore delete mode 100644 test/fixtures/pixi-project/.gitignore diff --git a/.gitignore b/.gitignore index 0b60dfa..8466251 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,7 @@ dist node_modules .vscode-test/ *.vsix + +# Pixi environments in test fixtures and projects +**/.pixi/* +!**/.pixi/config.toml diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..678d79a --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +**/pixi.lock diff --git a/package.json b/package.json index 144e63f..cba6aa3 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,7 @@ }, "lint-staged": { "src/**/*.ts": "eslint --fix", - "*.{ts,js,mjs,cjs,json,md,yml,yaml}": "prettier --write" + "*": "prettier --write --ignore-unknown" }, "devDependencies": { "@types/fs-extra": "^11.0.4", diff --git a/test/fixtures/pixi-project/.gitignore b/test/fixtures/pixi-project/.gitignore deleted file mode 100644 index ae849e6..0000000 --- a/test/fixtures/pixi-project/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -# pixi environments -.pixi/* -!.pixi/config.toml From f400e87c5615787e88d8ab687364d5222c7ebb26 Mon Sep 17 00:00:00 2001 From: Lars Kaiser Date: Sun, 27 Sep 2026 22:36:09 +0200 Subject: [PATCH 2/3] Declare and install pixi as test requirement --- .github/workflows/ci.yaml | 5 +++++ CONTRIBUTING.md | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index fb5b53a..0fe090d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -23,6 +23,11 @@ jobs: node-version-file: .nvmrc cache: npm + - name: Install Pixi + run: | + curl -fsSL https://pixi.sh/install.sh | sh + echo "$HOME/.pixi/bin" >> "$GITHUB_PATH" + - name: Install dependencies run: npm ci diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1648c0f..750fd9f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -8,7 +8,7 @@ Code extension that integrates Pixi environments with the Python Environments ex 1. **Prerequisites** - Node.js 20+ - VS Code with the Python Environments extension installed - - Pixi installed on your system + - [Pixi](https://pixi.prefix.dev/latest/installation/) installed on your system 2. **Clone and setup** From 2dfce2b181b0e8427b59ab48c164bc5ac4f357ab Mon Sep 17 00:00:00 2001 From: Lars Kaiser Date: Sun, 27 Sep 2026 22:55:11 +0200 Subject: [PATCH 3/3] Exclude test folder and pixi enviroments in general from the pixi-code extension artifact --- .vscodeignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.vscodeignore b/.vscodeignore index 98449b5..d1108c6 100644 --- a/.vscodeignore +++ b/.vscodeignore @@ -1,6 +1,8 @@ **/.github/ .vscode/** .vscode-test/** +test/** +**/.pixi/** out/** node_modules/** src/**