Skip to content

Commit 2485802

Browse files
feat: add pre-commit hook to execute tests
1 parent beb3dfc commit 2485802

3 files changed

Lines changed: 19 additions & 2 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ venv
44
dist
55
build
66
wheel
7-
.coverage
7+
.coverage
8+
.pytest_cache

.pre-commit-config.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v3.4.0
4+
hooks:
5+
- id: check-merge-conflict
6+
- id: trailing-whitespace
7+
- id: end-of-file-fixer
8+
- id: check-yaml
9+
- repo: local
10+
hooks:
11+
- id: pytest
12+
name: pytest
13+
entry: pytest
14+
language: python
15+
types: [python]

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
schema>=0.7.1
2-
PyYaml>=3.12.0
2+
PyYaml>=3.12.0
3+
pre-commit>=1.2.2

0 commit comments

Comments
 (0)