.pre-commit-config.yaml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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: 19.10b0
  17. hooks:
  18. - id: black
  19. types: [python]
  20. exclude: (migrations/)
  21. - repo: local
  22. hooks:
  23. - id: flake8
  24. name: flake8
  25. entry: flake8
  26. language: python
  27. files: \.py$
  28. log_file: '.artifacts/flake8.pycodestyle.log'
  29. - repo: git://github.com/pre-commit/pre-commit-hooks
  30. rev: v2.5.0
  31. hooks:
  32. - id: check-case-conflict
  33. - id: check-executables-have-shebangs
  34. - id: check-merge-conflict
  35. - id: check-symlinks
  36. - id: end-of-file-fixer
  37. exclude_types: [svg]
  38. - id: trailing-whitespace
  39. exclude_types: [svg]
  40. - id: debug-statements
  41. # - repo: git://github.com/getsentry/pre-commit-hooks
  42. # rev: f3237d2d65af81d435c49dee3593dc8f03d23c2d
  43. # hooks:
  44. # - id: prettier
  45. # - id: eslint
  46. # args: ['--format=checkstyle']
  47. # log_file: '.artifacts/eslint.checkstyle.xml'