Skip to content

Commit

Permalink
chore: add pyright to tox/pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
CaselIT committed Oct 18, 2024
1 parent b444a26 commit 03d9abd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
- env: towncrier
# Typing
- env: mypy
- env: pyright
- env: mypy_tests
# Python tests
- env: mintest
Expand Down
10 changes: 9 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ deps = {[with-debug-tools]deps}
jsonschema

# --------------------------------------------------------------------
# Mypy
# Type checkers (Mypy, pyright)
# --------------------------------------------------------------------

[testenv:mypy]
Expand All @@ -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
Expand Down

0 comments on commit 03d9abd

Please sign in to comment.