Skip to content

Commit b0ed4b8

Browse files
authored
Set up ruff, add CI check (#1996)
* Set up ruff, add CI check * We should also run pytest * Run prettier on repo-checks.yml
1 parent d98574b commit b0ed4b8

File tree

5 files changed

+909
-760
lines changed

5 files changed

+909
-760
lines changed

.github/workflows/repo-checks.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,20 @@ name: Repo Checks
33
on: ["push", "pull_request"]
44

55
jobs:
6+
check_python_quality:
7+
name: Code Quality
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-python@v6
13+
with:
14+
python-version: "3.11"
15+
- run: pip install -r llm/requirements.txt
16+
- run: ruff check llm/
17+
- run: ruff format --check llm/
18+
- run: pytest llm/
19+
620
check_code_quality:
721
name: Code Quality
822
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)