Merge pull request #2084 from sylvainmouquet/chore--add-pyright

chore(ci): add pyright
This commit is contained in:
Nicolas Hennion 2022-07-10 18:37:58 +02:00 committed by GitHub
commit 169468cd0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 1 deletions

View File

@ -34,6 +34,17 @@ jobs:
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide # 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 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 - name: Unitary tests
run: | run: |
python ./unitest.py python ./unitest.py

View File

@ -1,2 +1,3 @@
py-spy py-spy
black black
pyright