mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
* don't modify directories * oops typo * dev_config/python * add config to CI * bump CI python to 3.10 * 3.11? * del actions/ * add suggestions * delete unused code * missed some * oops missed another one * remove a file
35 lines
873 B
YAML
35 lines
873 B
YAML
name: Lint
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
lint-frontend:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: 20
|
|
- run: |
|
|
cd frontend
|
|
npm ci --legacy-peer-deps
|
|
- run: |
|
|
cd frontend
|
|
npm run lint
|
|
|
|
lint-python:
|
|
name: Lint python
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up python
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: 3.11
|
|
- name: Install dependencies
|
|
run: pip install ruff mypy types-requests
|
|
- name: Run ruff
|
|
run: ruff check --config dev_config/python/ruff.toml opendevin/ server/ agenthub/
|
|
- name: Run mypy
|
|
run: mypy --config-file dev_config/python/mypy.ini opendevin/ server/ agenthub/
|