Skip to content

Commit 22831e1

Browse files
dasAtRagedyslhck
authored andcommitted
teeny gramatical error in docs (astral-sh#12908)
<!-- Thank you for contributing to uv! To help us out with reviewing, please consider the following: - Does this pull request include a summary of the change? (See below.) - Does this pull request include a descriptive title? - Does this pull request include references to any relevant issues? --> ## Summary <!-- What's the purpose of the change? What does it do, and why? --> Incorrect use of the indefinite article- 'an project' instead of 'a project' ## Test Plan <!-- How was it tested? --> Was not tested due to it being a small change to docs wording without change in formatting.
1 parent e178cc1 commit 22831e1

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

docs/guides/integration/fastapi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ To use uv with this application, inside the `project` directory run:
4242
$ uv init --app
4343
```
4444

45-
This creates an [project with an application layout](../../concepts/projects/init.md#applications)
45+
This creates a [project with an application layout](../../concepts/projects/init.md#applications)
4646
and a `pyproject.toml` file.
4747

4848
Then, add a dependency on FastAPI:

docs/guides/scripts.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,24 @@ PS> uv run --with PyQt5 example_pyqt.pyw
351351

352352
![Run Result](../assets/uv_gui_script_hello_world_pyqt.png){: style="height:50px;width:150px"}
353353

354+
## Setting a shebang
355+
356+
You can use the following shebang (`#!`) line at the top of your script to have your system pick `uv` for running it:
357+
358+
```python title="example.py"
359+
#!/usr/bin/env -S uv run --script
360+
# /// script
361+
# dependencies = []
362+
# ///
363+
```
364+
365+
You can then make the script executable and launch it without explicitly calling `uv`:
366+
367+
```bash
368+
chmod +x example.py
369+
./example.py
370+
```
371+
354372
## Next steps
355373

356374
To learn more about `uv run`, see the [command reference](../reference/cli.md#uv-run).

0 commit comments

Comments
 (0)