1 # See https://pre-commit.com for more information
2 # See https://pre-commit.com/hooks.html for more hooks
4 - repo: https://github.com/pre-commit/pre-commit-hooks
7 - id: trailing-whitespace
8 - id: end-of-file-fixer
10 - id: check-added-large-files
11 - repo: https://github.com/psf/black
15 args: ['--check', '--diff', '.']
16 - repo: https://github.com/charliermarsh/ruff-pre-commit
20 # ambiguous-variable-name (E741), line-too-long (E501)
21 args: ['--ignore=E741,E501', '.']
22 # [TODO] C linter/formatter
23 # Note: There is an old config file for uncrustify (https://uncrustify.sourceforge.net)
24 # in the repo, but we may want to migrate to other modern style.
25 # - repo: https://github.com/pre-commit/mirrors-clang-format