Skip to content

Commit 837a4b0

Browse files
Merge pull request #561 from NHSDigital/feature/made14-NRL-fix-hooks-on-develop
[NRL-602] Don't run no-commit-to-branch hook as part of make lint call
2 parents 0be240e + facf9e2 commit 837a4b0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ repos:
2020
- id: end-of-file-fixer
2121
- id: trailing-whitespace
2222
- id: no-commit-to-branch
23-
name: Prevent commits to dev / master
23+
name: Prevent commits to develop / main branches
2424
entry: no-commit-to-branch
2525
language: python
2626
args: [-b, develop, -b, master, -b, main]

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ test-performance-cleanup:
9898

9999

100100
lint: check-warn ## Lint the project
101-
pre-commit run --all-files
101+
SKIP="no-commit-to-branch" pre-commit run --all-files
102102

103103
clean: ## Remove all generated and temporary files
104104
[ -n "$(DIST_PATH)" ] && \

0 commit comments

Comments
 (0)