Saltstack Official Syslog-NG Formula
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

78 lines
2.3KB

  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. ci:
  7. autofix_commit_msg: |
  8. ci(pre-commit.ci): apply auto fixes from pre-commit.com hooks
  9. For more information, see https://pre-commit.ci
  10. autofix_prs: true
  11. autoupdate_branch: ''
  12. autoupdate_commit_msg: |
  13. ci(pre-commit.ci): perform `pre-commit` autoupdate
  14. autoupdate_schedule: quarterly
  15. skip: []
  16. submodules: false
  17. default_stages: [commit]
  18. repos:
  19. - repo: https://github.com/dafyddj/commitlint-pre-commit-hook
  20. rev: v2.3.0
  21. hooks:
  22. - id: commitlint
  23. name: Check commit message using commitlint
  24. description: Lint commit message against @commitlint/config-conventional rules
  25. stages: [commit-msg]
  26. additional_dependencies: ['@commitlint/config-conventional@8.3.4']
  27. - id: commitlint-travis
  28. stages: [manual]
  29. additional_dependencies: ['@commitlint/config-conventional@8.3.4']
  30. always_run: true
  31. - repo: https://github.com/rubocop-hq/rubocop
  32. rev: v1.30.1
  33. hooks:
  34. - id: rubocop
  35. name: Check Ruby files with rubocop
  36. args: [--debug]
  37. always_run: true
  38. pass_filenames: false
  39. - repo: https://github.com/shellcheck-py/shellcheck-py
  40. rev: v0.8.0.4
  41. hooks:
  42. - id: shellcheck
  43. name: Check shell scripts with shellcheck
  44. files: ^.*\.(sh|bash|ksh)$
  45. types: []
  46. - repo: https://github.com/adrienverge/yamllint
  47. rev: v1.26.3
  48. hooks:
  49. - id: yamllint
  50. name: Check YAML syntax with yamllint
  51. args: [--strict, '.']
  52. always_run: true
  53. pass_filenames: false
  54. - repo: https://github.com/warpnet/salt-lint
  55. rev: v0.8.0
  56. hooks:
  57. - id: salt-lint
  58. name: Check Salt files using salt-lint
  59. files: ^.*\.(sls|jinja|j2|tmpl|tst)$
  60. - repo: https://github.com/myint/rstcheck
  61. rev: 3f929574
  62. hooks:
  63. - id: rstcheck
  64. name: Check reST files using rstcheck
  65. exclude: 'docs/CHANGELOG.rst'
  66. - repo: https://github.com/saltstack-formulas/mirrors-rst-lint
  67. rev: v1.3.2
  68. hooks:
  69. - id: rst-lint
  70. name: Check reST files using rst-lint
  71. exclude: |
  72. (?x)^(
  73. docs/CHANGELOG.rst|
  74. docs/TOFS_pattern.rst|
  75. )$
  76. additional_dependencies: [pygments==2.9.0]