.pre-commit-config.yaml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. exclude: >
  2. (?x)(
  3. LICENSE$|
  4. ^bin/yarn$|
  5. \.snap$|
  6. \.map$|
  7. \.map\.js$|
  8. ^tests/sentry/lang/.*/fixtures/|
  9. ^tests/fixtures/|
  10. ^src/sentry/static/sentry/vendor/|
  11. ^tests/sentry/lang/javascript/example-project/|
  12. ^src/.*/locale/|
  13. ^src/sentry/data/
  14. )
  15. repos:
  16. - repo: https://github.com/ambv/black
  17. rev: 19.10b0
  18. hooks:
  19. - id: black
  20. types: [python]
  21. exclude: (migrations/)
  22. - repo: local
  23. hooks:
  24. - id: flake8
  25. name: flake8
  26. entry: flake8
  27. language: python
  28. files: \.py$
  29. log_file: '.artifacts/flake8.pycodestyle.log'
  30. - repo: git://github.com/pre-commit/pre-commit-hooks
  31. rev: v2.5.0
  32. hooks:
  33. - id: check-case-conflict
  34. - id: check-executables-have-shebangs
  35. - id: check-merge-conflict
  36. - id: check-symlinks
  37. - id: end-of-file-fixer
  38. exclude_types: [svg]
  39. - id: trailing-whitespace
  40. exclude_types: [svg]
  41. - id: debug-statements
  42. # - repo: git://github.com/getsentry/pre-commit-hooks
  43. # rev: f3237d2d65af81d435c49dee3593dc8f03d23c2d
  44. # hooks:
  45. # - id: prettier
  46. # - id: eslint
  47. # args: ['--format=checkstyle']
  48. # log_file: '.artifacts/eslint.checkstyle.xml'