diff options
-rw-r--r-- | .github/workflows/test.yml | 6 | ||||
-rw-r--r-- | dev-requirements.txt | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 42c2a45f..9cb0b015 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,6 +26,7 @@ jobs: python -m pip install --upgrade pip pip install flake8 if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + if [ -f dev-requirements.txt ]; then pip install -r dev-requirements.txt; fi - name: Lint with flake8 run: | @@ -34,6 +35,11 @@ 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: | + pyright glances + - 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 |