.pre-commit-config.yaml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. - id: flake8
  18. name: flake8
  19. entry: flake8
  20. language: python
  21. files: \.py$
  22. log_file: '.artifacts/flake8.pycodestyle.log'
  23. - repo: https://github.com/ambv/black
  24. rev: 19.3b0
  25. hooks:
  26. - id: black
  27. types: [python]
  28. exclude: (south_migrations/)
  29. - repo: git://github.com/pre-commit/pre-commit-hooks
  30. rev: v1.3.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. - id: requirements-txt-fixer
  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'