lint.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. name: Lint
  2. on: [push, pull_request]
  3. jobs:
  4. lint-frontend:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - uses: actions/checkout@v4
  8. - name: Install Node.js 20
  9. uses: actions/setup-node@v4
  10. with:
  11. node-version: 20
  12. - name: Install dependencies
  13. run: |
  14. cd frontend
  15. npm install --frozen-lockfile
  16. - name: Lint
  17. run: |
  18. cd frontend
  19. npm run lint
  20. lint-python:
  21. name: Lint python
  22. runs-on: ubuntu-latest
  23. steps:
  24. - uses: actions/checkout@v4
  25. - name: Set up python
  26. uses: actions/setup-python@v5
  27. with:
  28. python-version: 3.11
  29. - name: Create mypy cache directory
  30. run: mkdir -p .mypy_cache
  31. - name: Install dependencies
  32. run: pip install ruff mypy==1.9.0 types-PyYAML types-toml
  33. - name: Run mypy
  34. run: python -m mypy --install-types --non-interactive --config-file dev_config/python/mypy.ini opendevin/ agenthub/
  35. - name: Run ruff
  36. run: ruff check --config dev_config/python/ruff.toml opendevin/ agenthub/