From ef13fdbfdb03a10e520a834b32e8a6cac988323a Mon Sep 17 00:00:00 2001 From: Niklas Fiekas Date: Sun, 13 Oct 2024 12:44:42 +0200 Subject: [PATCH] Run pyright in CI --- .github/workflows/test.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 576d8b49..ffe0c4bc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -35,7 +35,7 @@ jobs: - run: python examples/perft/perft.py -t 1 --variant horde examples/perft/horde.perft - run: python examples/perft/perft.py -t 1 --variant crazyhouse examples/perft/crazyhouse.perft - run: python examples/perft/perft.py -t 1 --variant 3check examples/perft/3check.perft - mypy: + typing: strategy: matrix: os: [ubuntu-latest, windows-latest] @@ -50,6 +50,9 @@ jobs: - run: pip install mypy - run: python -m mypy --strict chess - run: python -m mypy --strict examples/**/*.py + - run: pip install pyright + - run: python -m pyright chess + - run: python -m pyright --strict examples/**/*.py readme: runs-on: ubuntu-latest steps: