Skip to content

Commit 8f3b0ac

Browse files
committed
fix: broken pre-commit venv symlink + remove debug step
Use setup-python in warmer instead of uv python install so Python paths match the consumer. Only create default + verify hatch envs. Remove temporary debug step from main.yml.
1 parent 00c0c50 commit 8f3b0ac

2 files changed

Lines changed: 1 addition & 29 deletions

File tree

.github/workflows/main.yml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -78,27 +78,6 @@ jobs:
7878
- name: Install Hatch
7979
uses: pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc # install
8080

81-
- name: Debug pre-commit cache
82-
run: |
83-
echo "=== db.db repos ==="
84-
sqlite3 ~/.cache/pre-commit/db.db "SELECT * FROM repos;" 2>/dev/null || echo "no db.db or sqlite3"
85-
echo ""
86-
# Find the ruff-pre-commit repo dir from db.db
87-
RUFF_DIR=$(sqlite3 ~/.cache/pre-commit/db.db "SELECT path FROM repos WHERE repo LIKE '%ruff%';" 2>/dev/null)
88-
echo "=== Ruff hook dir: $RUFF_DIR ==="
89-
ls -la "$RUFF_DIR/" 2>/dev/null | head -10
90-
echo "=== Ruff venv contents ==="
91-
ls -la "$RUFF_DIR/py_env-python3.10/" 2>/dev/null | head -10
92-
echo "=== pyvenv.cfg ==="
93-
cat "$RUFF_DIR/py_env-python3.10/pyvenv.cfg" 2>/dev/null
94-
echo "=== Python binary check ==="
95-
ls -la "$RUFF_DIR/py_env-python3.10/bin/python"* 2>/dev/null
96-
file "$RUFF_DIR/py_env-python3.10/bin/python" 2>/dev/null
97-
echo "=== Can the venv python run? ==="
98-
"$RUFF_DIR/py_env-python3.10/bin/python" --version 2>&1 || echo "FAILED"
99-
echo "=== Installed packages in venv ==="
100-
"$RUFF_DIR/py_env-python3.10/bin/pip" list 2>&1 | head -10 || echo "pip list failed"
101-
10281
- name: Run Code Quality
10382
run: hatch -v run code-quality
10483

.github/workflows/warmDepsCache.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,17 +84,10 @@ jobs:
8484
- name: Install Hatch
8585
uses: pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc # install
8686

87-
- name: Install Python versions for test matrix
88-
run: uv python install 3.10 3.11 3.12 3.13
89-
90-
- name: Create all hatch environments (populates uv cache)
87+
- name: Create hatch environments (populates uv cache)
9188
run: |
9289
set -euo pipefail
9390
hatch env create default
94-
hatch env create test.py3.10
95-
hatch env create test.py3.11
96-
hatch env create test.py3.12
97-
hatch env create test.py3.13
9891
hatch env create verify
9992
10093
- name: Warm pre-commit cache

0 commit comments

Comments
 (0)