diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7310e57380e6e3d45629112fec192051b5312d2e..bcf55a7eecb2d086068cfe3bdf40c025505008f1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,3 +12,7 @@ repos: rev: 3.9.1 hooks: - id: flake8 + - repo: https://github.com/PyCQA/pylint + rev: v2.13.8 + hooks: + - id: pylint diff --git a/README.md b/README.md index 1a67073089e0f2e84e794d3b0941b46a76d17d0e..72f13610002f663703c5844434f5670156a24e31 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,28 @@ $ pip install -r requirements.txt `$ rabbitmqctl change_password reggie <new_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. + + +### 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 ## 1. Connect to OHPC/OOD