Saltstack Official Chrony Formula
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.

56 lines
1.7KB

  1. # -*- coding: utf-8 -*-
  2. # vim: ft=yaml
  3. ---
  4. # See https://pre-commit.com for more information
  5. # See https://pre-commit.com/hooks.html for more hooks
  6. default_stages: [commit]
  7. repos:
  8. - repo: https://github.com/dafyddj/commitlint-pre-commit-hook
  9. rev: v2.3.0
  10. hooks:
  11. - id: commitlint
  12. name: Check commit message using commitlint
  13. description: Lint commit message against @commitlint/config-conventional rules
  14. stages: [commit-msg]
  15. additional_dependencies: ['@commitlint/config-conventional@8.3.4']
  16. - id: commitlint-travis
  17. stages: [manual]
  18. additional_dependencies: ['@commitlint/config-conventional@8.3.4']
  19. always_run: true
  20. - repo: https://github.com/rubocop-hq/rubocop
  21. rev: v1.9.1
  22. hooks:
  23. - id: rubocop
  24. name: Check Ruby files with rubocop
  25. args: [--debug]
  26. always_run: true
  27. pass_filenames: false
  28. - repo: https://github.com/shellcheck-py/shellcheck-py
  29. rev: v0.7.1.1
  30. hooks:
  31. - id: shellcheck
  32. name: Check shell scripts with shellcheck
  33. files: ^.*\.(sh|bash|ksh)$
  34. types: []
  35. - repo: https://github.com/adrienverge/yamllint
  36. rev: v1.23.0
  37. hooks:
  38. - id: yamllint
  39. name: Check YAML syntax with yamllint
  40. args: [--strict, '.']
  41. always_run: true
  42. pass_filenames: false
  43. - repo: https://github.com/warpnet/salt-lint
  44. rev: v0.3.0
  45. hooks:
  46. - id: salt-lint
  47. name: Check Salt files using salt-lint
  48. files: ^.*\.(sls|jinja|j2|tmpl|tst)$
  49. - repo: https://github.com/myint/rstcheck
  50. rev: 3f929574
  51. hooks:
  52. - id: rstcheck
  53. name: Check reST files using rstcheck
  54. exclude: 'docs/CHANGELOG.rst'
  55. args: [--report=warning]