mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-25 10:12:55 +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
|
# 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
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
py-spy
|
py-spy
|
||||||
black
|
black
|
||||||
|
pyright
|
Loading…
Reference in New Issue
Block a user