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
|
||||||
|
4
Makefile
4
Makefile
@@ -136,10 +136,10 @@ lint-install: ## install hadolint
|
|||||||
@curl -sL -o $(HADOLINT) "https://github.com/hadolint/hadolint/releases/download/$(HADOLINT_VERSION)/hadolint-$(shell uname -s)-$(shell uname -m)"
|
@curl -sL -o $(HADOLINT) "https://github.com/hadolint/hadolint/releases/download/$(HADOLINT_VERSION)/hadolint-$(shell uname -s)-$(shell uname -m)"
|
||||||
@chmod 700 $(HADOLINT)
|
@chmod 700 $(HADOLINT)
|
||||||
@echo "Installation done!"
|
@echo "Installation done!"
|
||||||
@$(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
|
||||||
|
@@ -75,4 +75,4 @@ $(docker run --rm ${IMAGE_NAME} R --silent -e 'installed.packages(.Library)[, c(
|
|||||||
\`\`\`
|
\`\`\`
|
||||||
$(docker run --rm ${IMAGE_NAME} apt list --installed)
|
$(docker run --rm ${IMAGE_NAME} apt list --installed)
|
||||||
\`\`\`
|
\`\`\`
|
||||||
EOF
|
EOF
|
||||||
|
Reference in New Issue
Block a user