diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5ba6b5f53..09fef9b6c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ # pydocstyle: Checking docstring style. # interrogate: Checks docstring code coverage. -default_stages: ["commit"] +default_stages: [commit] repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v3.4.0 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5da9f83b5..06099b396 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -21,6 +21,7 @@ Install the pre-commit hooks and testing dependencies: ```bash pip install .[testing_formatting] pre-commit install +pre-commit install -t commit-msg ``` You can run all the pre-commit hooks on all files as follows: ```bash