Skip to content

Commit a7f169d

Browse files
feature: add compile_prompt function to the client as well as replace the package manager poetry with uv (#458)
1 parent 32c9b15 commit a7f169d

23 files changed

Lines changed: 3805 additions & 4228 deletions

.dockerignore

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/question.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ assignees:
1010

1111
<!-- Mark with an `x` all the checkboxes that apply (like `[x]`) -->
1212

13-
- [ ] I've searched the project's [`issues`](https://github.com/qualifire_dev/qualifire/issues?q=is%3Aissue).
13+
- [ ] I've searched the project's [`issues`](https://github.com/qualifire-dev/qualifire/issues?q=is%3Aissue).
1414

1515
## ❓ Question
1616

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121

2222
<!-- Mark with an `x` all the checkboxes that apply (like `[x]`) -->
2323

24-
- [ ] I've read the [`CODE_OF_CONDUCT.md`](https://github.com/qualifire_dev/qualifire/blob/master/CODE_OF_CONDUCT.md) document.
25-
- [ ] I've read the [`CONTRIBUTING.md`](https://github.com/qualifire_dev/qualifire/blob/master/CONTRIBUTING.md) guide.
24+
- [ ] I've read the [`CODE_OF_CONDUCT.md`](https://github.com/qualifire-dev/qualifire/blob/master/CODE_OF_CONDUCT.md) document.
25+
- [ ] I've read the [`CONTRIBUTING.md`](https://github.com/qualifire-dev/qualifire/blob/master/CONTRIBUTING.md) guide.
2626
- [ ] I've updated the code style using `make codestyle`.
2727
- [ ] I've written tests for all new methods and classes that I created.
2828
- [ ] I've written the docstring in Google format for all the methods and classes that I used.

.github/dependabot.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,3 @@ updates:
2323
commit-message:
2424
prefix: ":arrow_up:"
2525
open-pull-requests-limit: 50
26-
27-
- package-ecosystem: "docker"
28-
directory: "/docker"
29-
schedule:
30-
interval: "weekly"
31-
allow:
32-
- dependency-type: "all"
33-
commit-message:
34-
prefix: ":arrow_up:"
35-
open-pull-requests-limit: 50

.github/workflows/build.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,30 @@ jobs:
1010
python-version: ["3.8", "3.9", "3.10", "3.11"]
1111

1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v6
14+
with:
15+
fetch-depth: 0 # Fetch all history for TruffleHog to scan commits
1416
- name: Set up Python ${{ matrix.python-version }}
15-
uses: actions/setup-python@v4.7.0
17+
uses: actions/setup-python@v6
1618
with:
1719
python-version: ${{ matrix.python-version }}
18-
- name: Install and configure Poetry
19-
uses: snok/install-poetry@v1
20+
21+
- name: Install uv
22+
uses: astral-sh/setup-uv@v7
2023
with:
21-
version: 1.6.1
24+
version: "0.9.22"
25+
2226
- name: Install dependencies
2327
run: |
24-
poetry install
25-
pip install pytest
26-
pip install openai
28+
uv sync
29+
2730
- name: Run style checks
2831
run: |
2932
make check-codestyle
30-
- name: Creadentials search in source code - TruffleHog OSS
33+
34+
- name: Credentials search in source code - TruffleHog OSS
3135
uses: trufflesecurity/trufflehog@v3.69.0
36+
3237
- name: Run tests
3338
run: |
3439
make test

.github/workflows/python-publish.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,23 @@ jobs:
2020
runs-on: ubuntu-latest
2121

2222
steps:
23-
- uses: actions/checkout@v4
23+
- uses: actions/checkout@v6
2424
- name: Set up Python
25-
uses: actions/setup-python@v4.7.0
25+
uses: actions/setup-python@v6
2626
with:
2727
python-version: "3.x"
28-
- name: Install dependencies
29-
run: |
30-
python -m pip install --upgrade pip
31-
pip install build setuptools wheel twine
32-
- name: Install and configure Poetry
33-
uses: snok/install-poetry@v1
28+
29+
- name: Install uv
30+
uses: astral-sh/setup-uv@v7
3431
with:
35-
version: 1.6.1
32+
version: "0.9.22"
33+
3634
- name: Build package
3735
run: |
38-
python -m build
36+
uv build
3937
# Verify the wheel is valid
40-
twine check dist/*
38+
uv tool run twine check dist/*
39+
4140
- name: Publish package
4241
uses: pypa/gh-action-pypi-publish@release/v1
4342
with:

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ target/
189189
# pyenv
190190
.python-version
191191

192-
# poetry
193192
.venv
194193

195194
# pipenv

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ repos:
1717
hooks:
1818
- id: isort
1919
name: isort
20-
entry: poetry run isort --settings-path pyproject.toml
20+
entry: uv tool run isort --settings-path pyproject.toml
2121
types: [python]
2222
language: system
2323

2424
- repo: local
2525
hooks:
2626
- id: black
2727
name: black
28-
entry: poetry run black --config pyproject.toml
28+
entry: uv tool run black --config pyproject.toml
2929
types: [python]
3030
language: system

CLAUDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ make pre-commit-install
1717
make test
1818

1919
# Run a single test file
20-
poetry run pytest tests/test_types.py
20+
uv run pytest tests/test_types.py
2121

2222
# Run a specific test
23-
poetry run pytest tests/test_types.py::TestEvaluationRequest::test_validate_messages_input_output -v
23+
uv run pytest tests/test_types.py::TestEvaluationRequest::test_validate_messages_input_output -v
2424

2525
# Format code (isort, black, pyupgrade)
2626
make codestyle

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
## Dependencies
44

5-
We use `poetry` to manage the [dependencies](https://github.com/python-poetry/poetry).
6-
If you dont have `poetry`, you should install with `make poetry-download`.
5+
We use `uv` to manage the [dependencies](https://docs.astral.sh/uv/).
6+
If you don't have `uv`, you should install with `make uv-download` or follow the [official installation guide](https://docs.astral.sh/uv/getting-started/installation/).
77

88
To install dependencies and prepare [`pre-commit`](https://pre-commit.com/) hooks you would need to run `install` command:
99

@@ -12,7 +12,7 @@ make install
1212
make pre-commit-install
1313
```
1414

15-
To activate your `virtualenv` run `poetry shell`.
15+
To activate your virtual environment, uv will automatically handle it when running commands with `uv run`.
1616

1717
## Codestyle
1818

0 commit comments

Comments
 (0)