Skip to content

Commit 3478a06

Browse files
committed
fix: run tests from the src folder
1 parent 6912a7a commit 3478a06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ repos:
8080
hooks:
8181
- id: pytest
8282
name: pytest-check
83-
entry: sh -c "if [ -f api/.venv/bin/python ]; then var=api/.venv/bin/python; else var=api/.venv/Scripts/python; fi; $var -m pytest api/src/tests"
83+
entry: sh -c "cd ./api/src/ && poetry run pytest ./tests/"
8484
language: system
8585
pass_filenames: false
8686
always_run: true

0 commit comments

Comments
 (0)