mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-25 02:02:32 +03:00
Merge pull request #2084 from sylvainmouquet/chore--add-pyright
chore(ci): add pyright
This commit is contained in:
commit
169468cd0b
11
.github/workflows/test.yml
vendored
11
.github/workflows/test.yml
vendored
@ -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
|
||||
|
@ -1,2 +1,3 @@
|
||||
py-spy
|
||||
black
|
||||
black
|
||||
pyright
|
Loading…
Reference in New Issue
Block a user