.pre-commit-config.yaml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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: git://github.com/pre-commit/pre-commit-hooks
  33. rev: v3.4.0
  34. hooks:
  35. - id: check-case-conflict
  36. - id: check-executables-have-shebangs
  37. - id: check-merge-conflict
  38. - id: check-symlinks
  39. - id: end-of-file-fixer
  40. exclude_types: [svg]
  41. - id: trailing-whitespace
  42. exclude_types: [svg]
  43. - id: debug-statements
  44. # - repo: git://github.com/getsentry/pre-commit-hooks
  45. # rev: f3237d2d65af81d435c49dee3593dc8f03d23c2d
  46. # hooks:
  47. # - id: prettier
  48. # - id: eslint
  49. # args: ['--format=checkstyle']
  50. # log_file: '.artifacts/eslint.checkstyle.xml'