Skip to content

Commit 57e1cca

Browse files
committed
🚧
1 parent d75d4d0 commit 57e1cca

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.github/workflows/code-embedder.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ jobs:
4141
run: |
4242
uv sync --all-extras --dev
4343
uv pip install .
44-
# uv pip install typer # For code embedder
45-
pip install typer
4644
4745
- name: 🏞️ Activate virtual environment
4846
run: |
@@ -52,6 +50,9 @@ jobs:
5250
- name: 🪄 Format comments in code snippets
5351
run: python dev/scripts/format_snippet_prints.py
5452

53+
- name: 🏞️ Deactivate virtual environment
54+
run: deactivate
55+
5556
- name: 📝 Run code embedder
5657
uses: kvankova/[email protected]
5758
env:

dev/scripts/format_snippet_prints.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ def process_file(input_file_path: Path, output_file_path: Path) -> None:
6161
formatted_lines[-1] = f"{line.strip()}{formatted_output}\n" # Add comment with output
6262
print_index += 1
6363

64+
# Remove trailing newlines
65+
formatted_lines[-1] = formatted_lines[-1].rstrip("\n")
66+
6467
with output_file_path.open("w") as f:
6568
f.writelines(formatted_lines)
6669

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ dev = [
3535
"pytest>=8.3.3",
3636
"pytest-cov>=6",
3737
"pytest-md-report>=0.6.2",
38-
"typer>=0.15.1",
3938
]
4039
lint = ["ruff"]
4140
type-check = ["basedpyright"]

0 commit comments

Comments
 (0)