Skip to content

Commit

Permalink
feat: add pre-commit hook to execute tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielsouzacoder committed Jul 14, 2022
1 parent beb3dfc commit 2485802
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ venv
dist
build
wheel
.coverage
.coverage
.pytest_cache
15 changes: 15 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: check-merge-conflict
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- repo: local
hooks:
- id: pytest
name: pytest
entry: pytest
language: python
types: [python]
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
schema>=0.7.1
PyYaml>=3.12.0
PyYaml>=3.12.0
pre-commit>=1.2.2

0 comments on commit 2485802

Please sign in to comment.