mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-13 13:02:56 +00:00
Run pre-commit hooks server side
This commit is contained in:
2
.github/workflows/docker.yml
vendored
2
.github/workflows/docker.yml
vendored
@@ -43,6 +43,8 @@ jobs:
|
|||||||
make -C main dev-env lint-install
|
make -C main dev-env lint-install
|
||||||
- name: Lint Dockerfiles
|
- name: Lint Dockerfiles
|
||||||
run: make -C main lint-all
|
run: make -C main lint-all
|
||||||
|
- name: Run pre-commit hooks
|
||||||
|
run: make -C main pre-commit-all
|
||||||
- name: Build Docker Images
|
- name: Build Docker Images
|
||||||
run: make -C main build-test-all
|
run: make -C main build-test-all
|
||||||
- name: Run Post-Build Hooks
|
- name: Run Post-Build Hooks
|
||||||
|
2
Makefile
2
Makefile
@@ -139,7 +139,7 @@ lint-install: ## install hadolint
|
|||||||
@$(HADOLINT) --version
|
@$(HADOLINT) --version
|
||||||
|
|
||||||
pre-commit-all: ## run pre-commit hook on all files
|
pre-commit-all: ## run pre-commit hook on all files
|
||||||
@pre-commit run --all
|
@pre-commit run --all-files
|
||||||
|
|
||||||
pre-commit-install: ## set up the git hook scripts
|
pre-commit-install: ## set up the git hook scripts
|
||||||
@pre-commit --version
|
@pre-commit --version
|
||||||
|
Reference in New Issue
Block a user