| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- name: Lint
- on: [push, pull_request]
- jobs:
- lint-frontend:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v4
- - name: Install Node.js 20
- uses: actions/setup-node@v4
- with:
- node-version: 20
- - name: Install dependencies
- run: |
- cd frontend
- npm install --frozen-lockfile
- - name: Lint
- run: |
- cd frontend
- npm run lint
- lint-python:
- name: Lint python
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v4
- - name: Set up python
- uses: actions/setup-python@v5
- with:
- python-version: 3.11
- - name: Create mypy cache directory
- run: mkdir -p .mypy_cache
- - name: Install dependencies
- run: pip install ruff mypy==1.9.0 types-PyYAML types-toml
- - name: Run mypy
- run: python -m mypy --install-types --non-interactive --config-file dev_config/python/mypy.ini opendevin/ agenthub/
- - name: Run ruff
- run: ruff check --config dev_config/python/ruff.toml opendevin/ agenthub/
|