Skip to content

Commit 7ce511e

Browse files
sync: update from python-copier-template (#70)
## Summary Automated sync from [python-copier-template](https://github.com/Komorebi-AI/python-copier-template). This PR was generated by rendering the copier template and comparing the output against this repository. Please review the changes before merging. Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 843b449 commit 7ce511e

6 files changed

Lines changed: 13 additions & 8 deletions

File tree

.github/workflows/prek-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ jobs:
2020
with:
2121
uv-version: 0.10.12
2222
debug-enabled: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
23-
prek-args: --color=always --from-ref ${{ github.event.pull_request.base.sha }} --to-ref ${{ github.event.pull_request.head.sha }}
23+
prek-args: --from-ref ${{ github.event.pull_request.base.sha }} --to-ref ${{ github.event.pull_request.head.sha }}

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,9 @@ cython_debug/
198198
.abstra/
199199

200200
# Visual Studio Code
201-
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
201+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
202202
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
203-
# and can be added to the global gitignore or merged into this file. However, if you prefer,
203+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
204204
# you could uncomment the following to ignore the entire vscode folder
205205
# .vscode/
206206

CLAUDE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,27 @@ make upgrade # Upgrade all dependencies
1313
```
1414

1515
Run a single test:
16+
1617
```bash
1718
uv run pytest tests/test_file.py::test_name -v
1819
```
1920

2021
Run tests with optional marker:
22+
2123
```bash
2224
uv run pytest --optional
2325
```
2426

2527
### API Commands
2628

2729
Run the API locally:
30+
2831
```bash
2932
uv run python template/api.py
3033
```
3134

3235
Test API endpoint:
36+
3337
```bash
3438
make test-api # or: http localhost:7000
3539
```

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ Install package and pinned dependencies with the [`uv`](https://docs.astral.sh/u
5050
```bash
5151
uv run template
5252
```
53-
5453

5554
Alternatively, you can also activate the virtual env and run the scripts normally:
5655

@@ -161,4 +160,3 @@ make test
161160
```bash
162161
http localhost:7000/predict input=5
163162
```
164-

template/api.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,9 @@ def predict(request: Request) -> Response:
5454
port = 7000 if len(sys.argv) < 2 else int(sys.argv[1])
5555
host = "127.0.0.1" if len(sys.argv) < 3 else sys.argv[2]
5656
uvicorn.run(
57-
"template.api:app", host=host, port=port, reload=True, log_config="log_conf.yaml"
58-
)
57+
"template.api:app",
58+
host=host,
59+
port=port,
60+
reload=True,
61+
log_config="log_conf.yaml",
62+
)

template/main.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
import typer # type: ignore
88

9-
109
try:
1110
__version__: str | None = version("template")
1211
except PackageNotFoundError:

0 commit comments

Comments
 (0)