Skip to content

Commit ae9e403

Browse files
Merge pull request #640 from NHSDigital/chore/SR-ELI-771-pre-commit-hook-config
Fixed pre-commit hook path to use project-specific config in Makefile
2 parents 7baf1d5 + 3474c92 commit ae9e403

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ __pycache__/
2828
.envrc
2929
.idea/
3030
.venv/
31+
.python-version
3132

3233
smoketest-report.xml
3334
.env

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.13
1+
3.13.5

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ install-python:
1111

1212
#Configures Git Hooks, which are scripts that run given a specified event.
1313
.git/hooks/pre-commit:
14-
cp scripts/pre-commit .git/hooks/pre-commit
14+
pre-commit install --config scripts/config/pre-commit.yaml
1515

1616
#Condensed Target to run all targets above.
1717
install: install-python .git/hooks/pre-commit

0 commit comments

Comments
 (0)