Skip to content

Commit f1407a2

Browse files
committed
Fix precommit in CI
1 parent 1b5d9b4 commit f1407a2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,17 @@ repos:
6060
- id: trailing-whitespace
6161
exclude: ^tests/.*\.txt$
6262

63-
# pytest - Run tests before commit
63+
# pytest - Run tests before commit (optional, skip in CI)
64+
# Note: Tests are run separately in CI workflow, not in pre-commit
6465
- repo: local
6566
hooks:
6667
- id: pytest
6768
name: pytest
6869
description: Run pytest test suite
69-
entry: uv run pytest
70+
entry: bash -c 'command -v uv >/dev/null 2>&1 && uv run pytest --no-cov -q || echo "Skipping pytest (uv not available)"'
7071
language: system
7172
pass_filenames: false
72-
always_run: true
73-
args: [--no-cov, -q]
73+
stages: [manual] # Only run when explicitly requested with --hook-stage manual
7474

7575
# Global settings
7676
default_language_version:

0 commit comments

Comments
 (0)