Skip to content

Commit

Permalink
Try with pre-commit default usage
Browse files Browse the repository at this point in the history
  • Loading branch information
matlabbe committed Mar 17, 2024
1 parent 9f230f5 commit 578bf0e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,4 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- name: Install pre-commit
run: pip install pre-commit
- name: Run pre-commit
run: pre-commit run --all-files
- name: Check for modified files
run: |
if [[ `git diff --exit-code` ]]; then
echo "Files were changed by cmake-format and/or clang-format:"
git diff
echo "Please run 'pre-commit run --all-files' locally to fix these issues."
exit 1
fi
- uses: pre-commit/[email protected]
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ repos:
rev: v0.6.10
hooks:
- id: cmake-format
- id: cmake-lint

- repo: https://github.com/pryorda/dockerfilelint-precommit-hooks
rev: v0.1.0
Expand Down

0 comments on commit 578bf0e

Please sign in to comment.