Skip to content

Commit

Permalink
dev: fix pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
gventuri committed Oct 14, 2024
1 parent a93057d commit da866c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.env

.DS_Store
.DS_Store
12 changes: 4 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,17 @@ repos:
hooks:
- id: pytest-check
name: pytest-check
entry: poetry run pytest
entry: pytest
language: system
pass_filenames: false
always_run: true
args: ["-v", "--cov=app", "--cov-report=term-missing"]
types: [python]
stages: [commit]

- repo: local
hooks:
- id: coverage-check
name: coverage-check
entry: poetry run coverage report --fail-under=80
entry: bash -c 'echo "Running coverage" && cd backend && poetry run coverage run -m pytest && poetry run coverage report --fail-under=80'
language: system
pass_filenames: false
always_run: true
always_run: false
files: ^(backend/|tests/)
types: [python]
stages: [commit]

0 comments on commit da866c5

Please sign in to comment.