.pre-commit-config.yaml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. exclude: >
  2. (?x)(
  3. LICENSE$|
  4. \.snap$|
  5. \.map$|
  6. \.map\.js$|
  7. ^tests/sentry/lang/.*/fixtures/|
  8. ^tests/fixtures/|
  9. ^src/sentry/static/sentry/vendor/|
  10. ^tests/sentry/lang/javascript/example-project/|
  11. ^src/.*/locale/|
  12. ^src/sentry/data/
  13. )
  14. repos:
  15. - repo: local
  16. hooks:
  17. # Configuration for black exists in pyproject.toml,
  18. # but we let pre-commit take care of the file filtering.
  19. - id: black
  20. name: black
  21. entry: black
  22. language: python
  23. types: [python]
  24. # Configuration for flake8 exists in setup.cfg,
  25. # but we let pre-commit take care of the file filtering.
  26. - id: flake8
  27. name: flake8
  28. entry: flake8
  29. language: python
  30. types: [python]
  31. log_file: '.artifacts/flake8.pycodestyle.log'
  32. - repo: https://github.com/sirosen/check-jsonschema
  33. rev: 0.3.0
  34. hooks:
  35. - id: check-github-actions
  36. - id: check-github-workflows
  37. - repo: git://github.com/pre-commit/pre-commit-hooks
  38. rev: v3.4.0
  39. hooks:
  40. - id: check-case-conflict
  41. - id: check-executables-have-shebangs
  42. - id: check-merge-conflict
  43. - id: check-symlinks
  44. - id: end-of-file-fixer
  45. exclude_types: [svg]
  46. - id: trailing-whitespace
  47. exclude_types: [svg]
  48. - id: debug-statements
  49. # - repo: git://github.com/getsentry/pre-commit-hooks
  50. # rev: f3237d2d65af81d435c49dee3593dc8f03d23c2d
  51. # hooks:
  52. # - id: prettier
  53. # - id: eslint
  54. # args: ['--format=checkstyle']
  55. # log_file: '.artifacts/eslint.checkstyle.xml'