diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 0a5106a6c..163b94d20 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -32,6 +32,7 @@ jobs: - env: towncrier # Typing - env: mypy + - env: pyright - env: mypy_tests # Python tests - env: mintest diff --git a/tox.ini b/tox.ini index 8cf52b9c1..f88bc8f0b 100644 --- a/tox.ini +++ b/tox.ini @@ -107,7 +107,7 @@ deps = {[with-debug-tools]deps} jsonschema # -------------------------------------------------------------------- -# Mypy +# Type checkers (Mypy, pyright) # -------------------------------------------------------------------- [testenv:mypy] @@ -118,6 +118,14 @@ deps = mypy commands = python {toxinidir}/tools/clean.py "{toxinidir}/falcon" mypy falcon +[testenv:pyright] +skipsdist = True +skip_install = True +deps = pyright + types-jsonschema +commands = python {toxinidir}/tools/clean.py "{toxinidir}/falcon" + pyright falcon + [testenv:mypy_tests] deps = {[testenv]deps} mypy