.pre-commit-config.yaml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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: https://github.com/ambv/black
  16. # rev: 18.6b2
  17. # hooks:
  18. # - id: black
  19. # python_version: python3.6
  20. - repo: git://github.com/pre-commit/pre-commit-hooks
  21. rev: v1.3.0
  22. hooks:
  23. - id: check-case-conflict
  24. - id: check-executables-have-shebangs
  25. - id: check-merge-conflict
  26. - id: check-symlinks
  27. - id: end-of-file-fixer
  28. exclude_types: [svg]
  29. - id: trailing-whitespace
  30. exclude_types: [svg]
  31. - id: debug-statements
  32. # - id: flake8
  33. # log_file: '.artifacts/flake8.pycodestyle.log'
  34. - id: requirements-txt-fixer
  35. # - repo: git://github.com/getsentry/pre-commit-hooks
  36. # rev: f3237d2d65af81d435c49dee3593dc8f03d23c2d
  37. # hooks:
  38. # - id: prettier
  39. # - id: eslint
  40. # args: ['--format=checkstyle']
  41. # log_file: '.artifacts/eslint.checkstyle.xml'