diff options
author | Nicolas Hennion <nicolashennion@gmail.com> | 2022-07-10 18:37:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-10 18:37:58 +0200 |
commit | 169468cd0bd335042a60526817898d3c75190c7c (patch) | |
tree | 80964af771b47d000cbb9629a28cd62f467572a3 /.github | |
parent | 820007073fa1a5b7d272e1d0d5b0ba050bc71d10 (diff) | |
parent | 3237d2aedf9e0a9281030a5e62db1de9a4c1f3f5 (diff) |
Merge pull request #2084 from sylvainmouquet/chore--add-pyright
chore(ci): add pyright
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/test.yml | 11 |
1 files changed, 11 insertions, 0 deletions
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 |