From 1a3fc5eb41891f566d41e57fc834051010932cc9 Mon Sep 17 00:00:00 2001 From: Zoheb Shaikh <26975142+ZohebShaikh@users.noreply.github.com> Date: Sat, 21 Nov 2026 23:06:00 +0000 Subject: [PATCH] docs: Fix typos Co-Authored-By: Claude Opus 5.5 --- docs/how-to/strict-mode.md | 2 +- template/Dockerfile.jinja | 2 +- tests/test_example.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/how-to/strict-mode.md b/docs/how-to/strict-mode.md index d3842e19a..96b8e0311 100644 --- a/docs/how-to/strict-mode.md +++ b/docs/how-to/strict-mode.md @@ -8,6 +8,6 @@ When creating a template, select `pyright` as the type checker and type `y` when ## Who Should Use Strict Mode? -Strict mode enforces good practices such as type hints on function signatures, providing increased confidence in code that has been more thoroughly analyzed and a shorter development time thanks to fast feedback from the type checker. Starting a new project and continually keeping it passing provides a long-term benefit when it comes to maintanability and robustness. However, adopting strict mode on top of legacy projects is likely to lead to lots of errors to work through - probably thousands. Additionally it does not usually work well with libraries that do not have [type stubs](https://github.com/microsoft/pyright/blob/main/docs/type-stubs.md), you will likely need a `# type: ignore` on any line that directly uses the library code. This may limit the usefulness of pyright but it can still be worth doing to ensure your own code is internally consistent. +Strict mode enforces good practices such as type hints on function signatures, providing increased confidence in code that has been more thoroughly analyzed and a shorter development time thanks to fast feedback from the type checker. Starting a new project and continually keeping it passing provides a long-term benefit when it comes to maintainability and robustness. However, adopting strict mode on top of legacy projects is likely to lead to lots of errors to work through - probably thousands. Additionally it does not usually work well with libraries that do not have [type stubs](https://github.com/microsoft/pyright/blob/main/docs/type-stubs.md), you will likely need a `# type: ignore` on any line that directly uses the library code. This may limit the usefulness of pyright but it can still be worth doing to ensure your own code is internally consistent. The recommended approach for brand new projects is to enable strict mode and stick with it for as long as is practical, moving away if it starts to cause more hindrance than help (e.g. because too many major dependencies do not support it). diff --git a/template/Dockerfile.jinja b/template/Dockerfile.jinja index f34fd5f4f..eebaf4f7d 100644 --- a/template/Dockerfile.jinja +++ b/template/Dockerfile.jinja @@ -26,7 +26,7 @@ RUN --mount=type=cache,target=/root/.cache/uv \ # The runtime stage copies the built venv into a runtime container FROM ubuntu:resolute AS runtime -# Add apt-get system dependecies for runtime here if needed +# Add apt-get system dependencies for runtime here if needed # RUN apt-get update -y && apt-get install -y --no-install-recommends \ # some-library \ # && apt-get dist-clean diff --git a/tests/test_example.py b/tests/test_example.py index 98b487a00..398ada04e 100644 --- a/tests/test_example.py +++ b/tests/test_example.py @@ -31,7 +31,7 @@ def copy_project(project_path: Path, **kwargs): def run_pipe(cmd: str, cwd=None, venv="") -> str: env = dict(os.environ, UV_PROJECT_ENVIRONMENT="", VIRTUAL_ENV=venv) if venv: - # Activate thevenv. This means the newly created Python project + # Activate the venv. This means the newly created Python project # is in the environment, along with its associated tools. env["PATH"] = f"{venv}/bin{os.pathsep}{env['PATH']}" sp = subprocess.run(