You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

101 lines
2.6 KiB

  1. ---
  2. repos:
  3. - repo: https://github.com/pre-commit/pre-commit-hooks
  4. rev: v5.0.0
  5. hooks:
  6. - id: check-added-large-files
  7. - id: check-case-conflict
  8. - id: check-executables-have-shebangs
  9. - id: check-xml
  10. - id: check-merge-conflict
  11. - id: detect-private-key
  12. - id: end-of-file-fixer
  13. - id: forbid-new-submodules
  14. - id: requirements-txt-fixer
  15. - id: trailing-whitespace
  16. - repo: https://github.com/adrienverge/yamllint.git
  17. rev: v1.35.1
  18. hooks:
  19. - id: yamllint
  20. args: [--strict]
  21. - repo: https://github.com/markdownlint/markdownlint
  22. rev: v0.12.0
  23. hooks:
  24. - id: markdownlint
  25. exclude: "^.github|(^docs/_sidebar\\.md$)"
  26. - repo: https://github.com/shellcheck-py/shellcheck-py
  27. rev: v0.10.0.1
  28. hooks:
  29. - id: shellcheck
  30. args: ["--severity=error"]
  31. exclude: "^.git"
  32. files: "\\.sh$"
  33. - repo: https://github.com/ansible/ansible-lint
  34. rev: v24.9.2
  35. hooks:
  36. - id: ansible-lint
  37. additional_dependencies:
  38. - jsonschema==4.22.0
  39. - jmespath==1.0.1
  40. - netaddr==1.3.0
  41. - distlib
  42. - repo: https://github.com/golangci/misspell
  43. rev: v0.6.0
  44. hooks:
  45. - id: misspell
  46. exclude: "OWNERS_ALIASES$"
  47. - repo: local
  48. hooks:
  49. - id: tox-inventory-builder
  50. name: tox-inventory-builder
  51. entry: bash -c "cd contrib/inventory_builder && tox"
  52. language: python
  53. pass_filenames: false
  54. additional_dependencies:
  55. - tox==4.15.0
  56. - id: check-readme-versions
  57. name: check-readme-versions
  58. entry: tests/scripts/check_readme_versions.sh
  59. language: script
  60. pass_filenames: false
  61. - id: collection-build-install
  62. name: Build and install kubernetes-sigs.kubespray Ansible collection
  63. language: python
  64. additional_dependencies:
  65. - ansible-core>=2.16.4
  66. - distlib
  67. entry: tests/scripts/collection-build-install.sh
  68. pass_filenames: false
  69. - id: generate-docs-sidebar
  70. name: generate-docs-sidebar
  71. entry: scripts/gen_docs_sidebar.sh
  72. language: script
  73. pass_filenames: false
  74. - id: ci-matrix
  75. name: ci-matrix
  76. entry: tests/scripts/md-table/main.py
  77. language: python
  78. pass_filenames: false
  79. additional_dependencies:
  80. - jinja2
  81. - pathlib
  82. - pyaml
  83. - id: jinja-syntax-check
  84. name: jinja-syntax-check
  85. entry: tests/scripts/check-templates.py
  86. language: python
  87. types:
  88. - jinja
  89. additional_dependencies:
  90. - jinja2