mirror of
https://github.com/EttusResearch/uhd.git
synced 2026-10-25 17:36:10 +00:00
- 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
20 lines
537 B
YAML
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
|