2021-02-27 13:25:47 +01:00
|
|
|
---
|
2023-01-05 17:27:38 +01:00
|
|
|
files: ^(device-types|module-types)/
|
2021-02-27 13:25:47 +01:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2024-05-18 19:26:00 +02:00
|
|
|
rev: v4.6.0
|
2021-02-27 13:25:47 +01:00
|
|
|
hooks:
|
|
|
|
- id: trailing-whitespace
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: check-yaml
|
|
|
|
name: Check YAML files
|
|
|
|
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
|
2023-05-05 18:49:12 +02:00
|
|
|
rev: 0.2.3
|
2021-02-27 13:25:47 +01:00
|
|
|
hooks:
|
|
|
|
- id: yamlfmt
|
|
|
|
args: [--mapping, '2', --sequence, '4', --offset, '2']
|
|
|
|
- repo: https://github.com/adrienverge/yamllint.git
|
2024-03-27 17:33:39 +01:00
|
|
|
rev: v1.35.1
|
2021-02-27 13:25:47 +01:00
|
|
|
hooks:
|
|
|
|
- id: yamllint
|
|
|
|
name: Lint YAML files
|
2022-08-11 04:29:59 +02:00
|
|
|
args: [--format, parsable, --strict]
|
2023-03-15 16:45:06 +01:00
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: pytest
|
|
|
|
name: Run PyTest Case Checks
|
|
|
|
entry: pytest
|
|
|
|
language: system
|
|
|
|
args: [--tb=short, -v]
|
|
|
|
pass_filenames: false
|
|
|
|
always_run: true
|