Skip to content

Commit

Permalink
Upgrade pre-commit hooks (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
yu-iskw authored Dec 2, 2024
1 parent e2f7e8f commit c0a8b0f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --file Dockerfile --tag ${{ github.repository }}:$(date +%s)
run: |
docker build . --file Dockerfile --tag "${{ github.repository }}:$(date +%s)"
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v5.0.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-yaml
- repo: https://github.com/rhysd/actionlint
rev: v1.6.25
rev: v1.7.4
hooks:
- id: actionlint
- repo: https://github.com/hadolint/hadolint
rev: v2.12.0
rev: v2.13.1-beta
hooks:
- id: hadolint
- id: hadolint-docker
14 changes: 8 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ setup-dev:
SQLFLUFF_VERSION=3.0.7 python -m pip install --force-reinstall -r requirements/requirements.txt
pre-commit install

lint: lint-shell lint-json lint-docker

lint-shell:
shellcheck entrypoint.sh
lint: lint-json run-pre-commit

lint-json:
cat "to-rdjson.jq" | jq empty > /dev/null 2>&1; echo "$?"

lint-docker:
hadolint Dockerfile
run-pre-commit:
pre-commit run --all-files

maintain: update-pre-commit

update-pre-commit:
pre-commit autoupdate

0 comments on commit c0a8b0f

Please sign in to comment.