2021-03-11 16:20:15 +00:00
|
|
|
---
|
|
|
|
|
repos:
|
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2025-02-19 20:15:43 +00:00
|
|
|
rev: v5.0.0
|
2021-03-11 16:20:15 +00:00
|
|
|
hooks:
|
|
|
|
|
- id: trailing-whitespace
|
|
|
|
|
- id: mixed-line-ending
|
|
|
|
|
args: ['--fix', 'lf']
|
|
|
|
|
exclude: '.*\.(svg)$'
|
|
|
|
|
- id: check-byte-order-marker
|
|
|
|
|
- id: check-executables-have-shebangs
|
|
|
|
|
- id: check-merge-conflict
|
|
|
|
|
- id: debug-statements
|
|
|
|
|
- id: check-yaml
|
|
|
|
|
files: .*\.(yaml|yml)$
|
2022-07-04 12:14:56 +01:00
|
|
|
args: ['--unsafe']
|
2024-08-29 10:53:30 +01:00
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
2025-05-07 12:39:53 +01:00
|
|
|
rev: v0.11.8
|
2024-08-29 10:53:30 +01:00
|
|
|
hooks:
|
|
|
|
|
- id: ruff
|
2024-09-12 17:57:14 +01:00
|
|
|
args: ['--fix', '--unsafe-fixes']
|
2024-08-29 10:55:32 +01:00
|
|
|
- id: ruff-format
|
2024-01-23 11:47:52 +00:00
|
|
|
- repo: https://opendev.org/openstack/hacking
|
2024-08-29 10:57:20 +01:00
|
|
|
rev: 7.0.0
|
2021-03-11 16:20:15 +00:00
|
|
|
hooks:
|
2024-01-23 11:47:52 +00:00
|
|
|
- id: hacking
|
|
|
|
|
additional_dependencies: []
|
2024-08-29 10:57:20 +01:00
|
|
|
exclude: '^(doc|releasenotes)/.*$'
|
2025-02-19 20:15:44 +00:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
|
|
|
rev: v1.15.0
|
|
|
|
|
hooks:
|
|
|
|
|
- id: mypy
|
|
|
|
|
additional_dependencies:
|
|
|
|
|
- types-requests
|
|
|
|
|
# keep this in-sync with '[mypy] exclude' in 'setup.cfg'
|
|
|
|
|
exclude: |
|
|
|
|
|
(?x)(
|
|
|
|
|
doc/.*
|
|
|
|
|
| examples/.*
|
|
|
|
|
| releasenotes/.*
|
|
|
|
|
)
|