blob: 62b24c9ff30ddbe23d0fa187d776095ca5e3c32d [file] [log] [blame]
Doug Goldstein5564cee2025-02-02 11:29:29 -05001---
2default_language_version:
3 # force all unspecified python hooks to run python3
4 python: python3
5repos:
6 - repo: https://github.com/pre-commit/pre-commit-hooks
7 rev: v4.5.0
8 hooks:
9 - id: trailing-whitespace
10 # NOTE(JayF): We shouldn't modify release notes after their
11 # associated release. Instead, ignore these minor lint issues.
12 - id: mixed-line-ending
13 args: ['--fix', 'lf']
14 exclude: |
15 (?x)(
16 .*.svg$|
17 )
18 - id: fix-byte-order-marker
19 - id: check-merge-conflict
20 - id: debug-statements
21 - id: check-json
22 files: .*\.json$
23 - id: check-yaml
24 files: .*\.(yaml|yml)$
25 exclude: releasenotes/.*$
26 - repo: https://github.com/Lucas-C/pre-commit-hooks
27 rev: v1.5.4
28 hooks:
29 - id: remove-tabs
30 exclude: '.*\.(svg)$'
31 - repo: https://opendev.org/openstack/hacking
32 rev: 6.1.0
33 hooks:
34 - id: hacking
35 additional_dependencies: []
36 exclude: '^(doc|releasenotes|tools)/.*$'
37 - repo: https://github.com/codespell-project/codespell
38 rev: v2.4.1
39 hooks:
40 - id: codespell
41 args: [--write-changes]
42 - repo: https://github.com/sphinx-contrib/sphinx-lint
43 rev: v1.0.0
44 hooks:
45 - id: sphinx-lint
46 args: [--enable=default-role]
47 files: ^doc/|releasenotes|api-ref
48 - repo: https://opendev.org/openstack/bashate
49 rev: 2.1.0
50 hooks:
51 - id: bashate
52 args: ["-iE006,E044", "-eE005,E042"]
53 name: bashate
54 description: This hook runs bashate for linting shell scripts
55 entry: bashate
56 language: python
57 types: [shell]
58 - repo: https://github.com/PyCQA/doc8
59 rev: v1.1.2
60 hooks:
61 - id: doc8
62 - repo: https://github.com/astral-sh/ruff-pre-commit
63 rev: v0.7.3
64 hooks:
65 - id: ruff
66 args: ['--fix', '--unsafe-fixes']