Skip to content

Commit

Permalink
Support copyright check with pre-commit (#954)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomadamatkinson authored Mar 11, 2024
1 parent 002fa05 commit f297e6a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,19 @@ repos:
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: check-added-large-files
- id: trailing-whitespace
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: 'v15.0.7'
hooks:
- id: clang-format
'types_or': [c++, c]
- repo: local
hooks:
- id: copyright-check
name: copyright-check
entry: ./scripts/copyright.py main --fix
language: script
types: [python]
pass_filenames: false
always_run: true

0 comments on commit f297e6a

Please sign in to comment.