navkast commited on
Commit
77dc531
·
1 Parent(s): 28d9871

Update the system / user prompt distinctions.

Browse files
.python-version ADDED
@@ -0,0 +1 @@
 
 
1
+ 3.12.5
Makefile CHANGED
@@ -37,8 +37,14 @@ format: ## Format code using isort and black
37
  @$(ENSURE_UV)
38
  @echo "Formatting code..."
39
  @uv pip install isort black
40
- @uvx isort src tests
41
- @uvx black src tests
 
 
 
 
 
 
42
 
43
  .PHONY: lint
44
  lint: ## Run linters and type-checkers (ruff and mypy)
@@ -53,8 +59,12 @@ lint: ## Run linters and type-checkers (ruff and mypy)
53
  test: ## Run tests using pytest
54
  @$(ENSURE_UV)
55
  @echo "Running tests..."
56
- @uv pip install pytest
57
- @uv run pytest
 
 
 
 
58
 
59
  .PHONY: build
60
  build: ## Build the project using hatchling
 
37
  @$(ENSURE_UV)
38
  @echo "Formatting code..."
39
  @uv pip install isort black
40
+ @if [ -n "$(filter-out $@,$(MAKECMDGOALS))" ]; then \
41
+ echo "Formatting $(filter-out $@,$(MAKECMDGOALS))..."; \
42
+ uvx isort $(filter-out $@,$(MAKECMDGOALS)); \
43
+ uvx black $(filter-out $@,$(MAKECMDGOALS)); \
44
+ else \
45
+ uvx isort src tests; \
46
+ uvx black src tests; \
47
+ fi
48
 
49
  .PHONY: lint
50
  lint: ## Run linters and type-checkers (ruff and mypy)
 
59
  test: ## Run tests using pytest
60
  @$(ENSURE_UV)
61
  @echo "Running tests..."
62
+ @uv pip install pytest pytest-asyncio
63
+ @if [ -n "$(filter-out $@,$(MAKECMDGOALS))" ]; then \
64
+ uv run pytest -v $(filter-out $@,$(MAKECMDGOALS)); \
65
+ else \
66
+ uv run pytest; \
67
+ fi
68
 
69
  .PHONY: build
70
  build: ## Build the project using hatchling
src/notebooks/education_classifier.ipynb CHANGED
@@ -97,20 +97,6 @@
97
  "for e in all_educations_classified:\n",
98
  " print(e.model_dump_json(indent=2))"
99
  ]
100
- },
101
- {
102
- "cell_type": "code",
103
- "execution_count": null,
104
- "metadata": {},
105
- "outputs": [],
106
- "source": []
107
- },
108
- {
109
- "cell_type": "code",
110
- "execution_count": null,
111
- "metadata": {},
112
- "outputs": [],
113
- "source": []
114
  }
115
  ],
116
  "metadata": {
 
97
  "for e in all_educations_classified:\n",
98
  " print(e.model_dump_json(indent=2))"
99
  ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
100
  }
101
  ],
102
  "metadata": {
tests/app/prompts/test_prompts/basic_test/1 - test_user.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ This is a user prompt.
tests/app/prompts/test_prompts/basic_test/{2 - test2_human.txt → 2 - test2_user.txt} RENAMED
File without changes