Skip to content

Commit

Permalink
Add precommit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
ngokchaoho committed Dec 16, 2023
1 parent 6b49f7d commit 058afec
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
*.pyc
*.pyc
11 changes: 11 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
"terminal.integrated.env.linux": {
"PYTHONPATH": "${workspaceFolder}"
}
}
}
2 changes: 1 addition & 1 deletion pyredis/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ def extract_frame_from_buffer(buffer):


def encode_message(message):
return message.resp_encode()
return message.resp_encode()

0 comments on commit 058afec

Please sign in to comment.