Skip to content

Commit

Permalink
ENH: Update pre-commit config to include "clang-format"
Browse files Browse the repository at this point in the history
By adding `trailing-whitespace` to the pre-commit configuration, it enables
the following:
* GitHub Action report: Suggested changes are reported in the error log
  associated with the pre-commit GitHub Action workflow.
* Consolidated local pre-commit checks and updates by running:

  ```
  pip install pre-commit
  pre-commit run --all-files
  ```
  • Loading branch information
jcfr committed Feb 22, 2024
1 parent cb08ed3 commit c751a74
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ repos:
additional_dependencies:
- black==23.3.0 # keep in sync with black hook

- repo: https://github.com/pre-commit/mirrors-clang-format
rev: "v17.0.6"
hooks:
- id: clang-format

- repo: https://github.com/codespell-project/codespell
rev: "v2.2.5"
hooks:
Expand Down

0 comments on commit c751a74

Please sign in to comment.