.pre-commit-config.yaml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. repos:
  2. - repo: https://github.com/pre-commit/pre-commit-hooks
  3. rev: v3.2.0
  4. hooks:
  5. - id: trailing-whitespace
  6. - id: end-of-file-fixer
  7. - id: check-yaml
  8. - id: debug-statements
  9. - id: double-quote-string-fixer
  10. - id: requirements-txt-fixer
  11. - repo: https://github.com/hhatto/autopep8
  12. rev: v2.1.0
  13. hooks:
  14. - id: autopep8
  15. - repo: https://github.com/asottile/setup-cfg-fmt
  16. rev: v2.5.0
  17. hooks:
  18. - id: setup-cfg-fmt
  19. always_run: true
  20. pass_filenames: false
  21. - repo: https://github.com/astral-sh/ruff-pre-commit
  22. rev: v0.3.3
  23. hooks:
  24. - id: ruff
  25. entry: ruff check --config dev_config/python/ruff.toml opendevin/ agenthub/
  26. always_run: true
  27. pass_filenames: false
  28. - repo: https://github.com/pre-commit/mirrors-mypy
  29. rev: v1.9.0
  30. hooks:
  31. - id: mypy
  32. additional_dependencies: [types-requests, types-setuptools]
  33. entry: mypy --config-file dev_config/python/mypy.ini opendevin/ agenthub/
  34. always_run: true
  35. pass_filenames: false