diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index abd13e32b..eedbd2c4f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -29,12 +29,3 @@ repos: - id: flake8 name: flake8 format check entry: bash -c 'flake8 --config=.flake8 $(git diff --name-only --cached --diff-filter=ACMR | grep .py)' - - - repo: local - hooks: - - id: issue-number - name: Check for Github issue number - language: pygrep - entry: '\A(?!GH+-[0-9]+)' - args: [--multiline] - stages: [commit-msg] diff --git a/doc/running.md b/doc/running.md index 9e8861e82..3837fc3bb 100644 --- a/doc/running.md +++ b/doc/running.md @@ -444,19 +444,7 @@ Current checks are:- - `black` library (formats Python code) - `isort` library (standardises the order of Python imports) - `flake8` library (formats Python code and also improves code style) -- Github issue reference (commits must reference the issue number) To override the above for whatever reason (maybe you don't have a ticket number and because you are working on hotfix) you can use the following command. `PRE_COMMIT_ALLOW_NO_CONFIG=1 git push ...` - -### Git commit message - -Commit messages should follow the appropriate format. -All commits must begin with the Github issue they are associated with. - -format: `GH-[int]` - -e.g. - -`git commit -m "GH-1234 insert message here"`