uhd/.pre-commit-config.yaml
Martin Braun d8709bcc7b uhd: Add .pre-commit-config.yaml
- Includes ni-python-styleguide, and clang-format 14.
- Updates CODING.md to explain this
- Run `pre-commit install` on this repository to activate. You need to
  manually install `pre-commit` and `ni-python-styleguide` to make this
  work. A pip-based installation would look like this:

    $ pip install pre-commit ni-python-styleguide
    $ cd /path/to/uhd # Enter the repo
    $ pre-commit install
2024-04-08 21:44:38 -05:00

20 lines
537 B
YAML

repos:
- repo: git@github.com:ssciwr/clang-format-hook.git
rev: 'v14.0.6'
hooks:
- id: clang-format
- repo: local
hooks:
- id: ni-python-styleguide-fix
name: ni-python-styleguide-fix
description: Run NI Python Style Checker (Fixer)
language: python
types_or: [python]
entry: ni-python-styleguide fix
- id: ni-python-styleguide-lint
name: ni-python-styleguide-lint
description: Run NI Python Style Checker (Linter)
language: python
types_or: [python]
entry: ni-python-styleguide lint