-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (29 loc) · 944 Bytes
/
Makefile
File metadata and controls
36 lines (29 loc) · 944 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
.PHONY: install run debug clean lint lint-strict moulinette
install:
uv sync
run:
uv run python -m src
debug:
uv run python -m pdb -m src
clean:
find . -type d -name "__pycache__" -exec rm -rf {} +
rm -rf .mypy_cache .pytest_cache
lint:
uv run flake8 src/
uv run mypy src/ \
--explicit-package-bases \
--follow-imports=silent \
--warn-return-any \
--warn-unused-ignores \
--ignore-missing-imports \
--disallow-untyped-defs \
--check-untyped-defs
lint-strict:
uv run flake8 src/
uv run mypy src/ --strict --explicit-package-bases --follow-imports=silent
moulinette:
uv run python -m src \
--input moulinette/moulinette/data/input/function_calling_tests.json \
--output data/output/result.json \
--functions_definition moulinette/moulinette/data/input/functions_definition.json
cd moulinette && uv run python -m moulinette grade_student_answers --set private --student_answer_path ../data/output/result.json