This borrows the existing setting from sushy, which was added by [1], to apply the consistent checks. Note that flake8-import-order is additionally enabled in this change, while it is being restored in sushy by [2]. [1] https://review.opendev.org/c/openstack/sushy/+/929704 [2] https://review.opendev.org/c/openstack/sushy/+/953124 Co-Authored-By: Doug Goldstein <cardoe@cardoe.com> Change-Id: I8520821579f523bb74b20d0ba44ec4cc574a26bc
39 lines
1.0 KiB
YAML
39 lines
1.0 KiB
YAML
---
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.5.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: mixed-line-ending
|
|
args: ['--fix', 'lf']
|
|
exclude: |
|
|
(?x)(
|
|
.*.svg$|
|
|
)
|
|
- id: fix-byte-order-marker
|
|
- id: check-merge-conflict
|
|
- id: debug-statements
|
|
- id: check-json
|
|
files: .*\.json$
|
|
exclude: sushy_tools/emulator/templates/.*$
|
|
- id: check-yaml
|
|
files: .*\.(yaml|yml)$
|
|
exclude: releasenotes/.*$
|
|
- repo: https://github.com/Lucas-C/pre-commit-hooks
|
|
rev: v1.5.4
|
|
hooks:
|
|
- id: remove-tabs
|
|
exclude: '.*\.(svg)$'
|
|
- repo: https://opendev.org/openstack/hacking
|
|
rev: 6.1.0
|
|
hooks:
|
|
- id: hacking
|
|
additional_dependencies:
|
|
- flake8-import-order>=0.19,<0.20
|
|
exclude: '^(doc|releasenotes|tools)/.*$'
|
|
- repo: https://github.com/codespell-project/codespell
|
|
rev: v2.2.6
|
|
hooks:
|
|
- id: codespell
|
|
args: [--write-changes]
|