chore: add pyright to CI

This commit is contained in:
ChillerDragon 2024-04-23 12:41:31 +08:00
parent d395cbfd1d
commit e87e3a1da8
2 changed files with 2 additions and 0 deletions

View file

@ -39,6 +39,7 @@ pycparser==2.21
Pygments==2.14.0
pylint==2.17.0
pyproject_hooks==1.0.0
pyright==1.1.359
pytest==7.2.2
PyYAML==6.0
readme-renderer==37.3

View file

@ -24,6 +24,7 @@ find . -not -path './venv/*' -type f -name '*.sh' -print0 | xargs -0 shellcheck
pytest . || err "pytest failed!"
pylint twnet_parser/ || err "pylint failed!"
mypy twnet_parser/ || err "mypy failed!"
pyright twnet_parser/ || err "pyright failed!"
if grep -r 'List\[' twnet_parser tests/
then
err "found usage of List[ please use list[ instead"