From e33d6787f4b8dab093b4788080b63d8195289697 Mon Sep 17 00:00:00 2001 From: LBraga28 Date: Tue, 3 Nov 2026 15:14:40 -0300 Subject: [PATCH 1/2] chore(typing): extend Pyright checks to sample apps --- CONTRIBUTING.md | 13 +++++++++++++ tox.toml | 12 +++++++++++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 438401961..8636b2870 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -61,6 +61,19 @@ If you prefer, you can also use [`uvx`](https://docs.astral.sh/uv/) to run $ uvx tox -e reformat # also applies to other examples, e.g., uvx tox --recreate ``` +### Pyright checks + +Run the Pyright checks locally with: + +```bash +$ tox -e pyright_tests +``` + +This environment checks the end-to-end test server, typing regression tests, +and selected WSGI, ASGI, and WebSocket sample applications. It also runs in +GitHub Actions, but is not included in the default local `tox` run. These +checks do not yet cover the entire library. + ### Reviews Falcon is used in a number of mission-critical applications and is known for its stability and reliability. Therefore, we invest a lot of time in carefully reviewing PRs and working with contributors to ensure that every patch merged into the master branch is correct, complete, performant, well-documented, and appropriate. diff --git a/tox.toml b/tox.toml index ec4e9d2c4..803230a1a 100644 --- a/tox.toml +++ b/tox.toml @@ -173,11 +173,21 @@ commands = [ ] [env.pyright_tests] -deps = ["pyright"] +deps = [ + "pyright", + "uvicorn", +] commands = [ ["python", "tools/clean.py", "falcon"], ["pyright", "e2e-tests/server"], ["pyright", "tests/test_typing.py"], + [ + "pyright", + "examples/quote.py", + "examples/things.py", + "examples/things_asgi.py", + "examples/ws_tutorial/ws_tutorial/app.py", + ], ] # -------------------------------------------------------------------- From b3a41888e97f4e65990274996ab1b8ed0cbcabff Mon Sep 17 00:00:00 2001 From: LBraga28 Date: Mon, 9 Nov 2026 16:50:08 -0300 Subject: [PATCH 2/2] chore(typing): address Pyright review feedback --- CONTRIBUTING.md | 13 ------------- tox.toml | 9 ++------- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8636b2870..438401961 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -61,19 +61,6 @@ If you prefer, you can also use [`uvx`](https://docs.astral.sh/uv/) to run $ uvx tox -e reformat # also applies to other examples, e.g., uvx tox --recreate ``` -### Pyright checks - -Run the Pyright checks locally with: - -```bash -$ tox -e pyright_tests -``` - -This environment checks the end-to-end test server, typing regression tests, -and selected WSGI, ASGI, and WebSocket sample applications. It also runs in -GitHub Actions, but is not included in the default local `tox` run. These -checks do not yet cover the entire library. - ### Reviews Falcon is used in a number of mission-critical applications and is known for its stability and reliability. Therefore, we invest a lot of time in carefully reviewing PRs and working with contributors to ensure that every patch merged into the master branch is correct, complete, performant, well-documented, and appropriate. diff --git a/tox.toml b/tox.toml index 803230a1a..b97a7ebdc 100644 --- a/tox.toml +++ b/tox.toml @@ -181,13 +181,8 @@ commands = [ ["python", "tools/clean.py", "falcon"], ["pyright", "e2e-tests/server"], ["pyright", "tests/test_typing.py"], - [ - "pyright", - "examples/quote.py", - "examples/things.py", - "examples/things_asgi.py", - "examples/ws_tutorial/ws_tutorial/app.py", - ], + ["pyright", "examples/quote.py", "examples/things.py", "examples/things_asgi.py"], + ["pyright", "examples/ws_tutorial/ws_tutorial/app.py"], ] # --------------------------------------------------------------------