Skip to content
Snippets Groups Projects
Commit 8f96b642 authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Update README for pre commit hook

parent 5acab4cc
No related branches found
No related tags found
No related merge requests found
Pipeline #6094 failed with stage
in 27 seconds
...@@ -12,3 +12,7 @@ repos: ...@@ -12,3 +12,7 @@ repos:
rev: 3.9.1 rev: 3.9.1
hooks: hooks:
- id: flake8 - id: flake8
- repo: https://github.com/PyCQA/pylint
rev: v2.13.8
hooks:
- id: pylint
...@@ -65,6 +65,28 @@ $ pip install -r requirements.txt ...@@ -65,6 +65,28 @@ $ pip install -r requirements.txt
`$ rabbitmqctl change_password reggie <new_password>`. `$ rabbitmqctl change_password reggie <new_password>`.
- Note that rabbitmqctl may require sudo permissions and that changing the password will require a password - Note that rabbitmqctl may require sudo permissions and that changing the password will require a password
change in the credentials within `test_producer.py` and `base_consumer.py` as well. change in the credentials within `test_producer.py` and `base_consumer.py` as well.
### Setup pre commit hook
- via Homebrew(Mac)
```shell
brew install pre-commit
```
- via pip
```shell
pip install pre-commit
```
After pre-commit is installed, run install in the repo directory:
```shell
$ pre-commit install
> pre-commit installed at .git/hooks/pre-commit
```
# Run Project # Run Project
## 1. Connect to OHPC/OOD ## 1. Connect to OHPC/OOD
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment