aboutsummaryrefslogtreecommitdiff
path: root/.pre-commit-config.yaml
AgeCommit message (Collapse)AuthorFilesLines
2023-06-19Add clang-format to the pre-commit hooksAlex Richardson1-0/+5
This formats the code with clang-format 15 since the pre-commit hook for clang-format 16 would require a newer version of pre-commit.
2023-06-19Update pre-commit-hooks versionAlex Richardson1-1/+2
The template that I used when adding it uses hooks from 2020. Update this to the latest version and add a minimum pre-commit version check to ensure we get sensible error messages rather than obscure failures. The minimum chosen here is 2.10 as that is the version shipping with Debian 11 and most other distributions have newer versions. If needed a newer version can always be installed using pip.
2023-06-15Run the pre-commit hook on all filesAlex Richardson1-0/+6
This strips trailing whitespace and fixes line endings. I had to add the *.dump files to the exclude list to avoid excessive changes, but ideally these would not be part of the repository since they can just be generated by running objdump manually.
2023-06-15Add a basic pre-commit hook and update CONTRIBUTING.mdAlex Richardson1-0/+11
Recommend installation of this basic pre-commit hook that ensures that all files are free of trailing whitespace and have a final newline. It also checks that no large files are added and that YAML files are valid.