Skip to content

Commit e83e22f

Browse files
committed
Add CI with lint and type checks
1 parent d1be821 commit e83e22f

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ["**"]
6+
pull_request:
7+
branches: ["**"]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: "3.13"
19+
20+
- name: Install tooling
21+
run: |
22+
python -m pip install --upgrade pip
23+
python -m pip install pytest pytest-asyncio ruff mypy
24+
25+
- name: Lint
26+
run: ruff check .
27+
28+
- name: Type check
29+
run: mypy
30+
31+
- name: Tests
32+
run: pytest -q

pyproject.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,18 @@ dependencies = [
1515
dev = [
1616
"pytest>=9.0.1",
1717
"pytest-asyncio>=1.3.0",
18+
"ruff>=0.8.0",
19+
"mypy>=1.10.0",
1820
]
21+
22+
[tool.ruff]
23+
line-length = 100
24+
target-version = "py313"
25+
26+
[tool.ruff.lint]
27+
select = ["E9", "F63", "F7", "F82"]
28+
29+
[tool.mypy]
30+
python_version = "3.13"
31+
ignore_missing_imports = true
32+
files = ["feedback_agent/json_utils.py"]

0 commit comments

Comments
 (0)