diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 42c2a45f..a3afe6fc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,6 +34,17 @@ jobs: # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --exclude=.git,./docs,./glances/outputs/static + + - name: Static type check + run: | + if [ "${{ matrix.python-version }}" == "2.7" ]; + then + echo "Skipping static type check for Python 2.7"; + else + pip install pyright + pyright glances + fi + - name: Unitary tests run: | python ./unitest.py diff --git a/dev-requirements.txt b/dev-requirements.txt index a0e534a7..07b20e3e 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,2 +1,3 @@ py-spy -black \ No newline at end of file +black +pyright \ No newline at end of file