summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvain MOUQUET <sylvain.mouquet@gmail.com>2022-07-10 11:22:47 +0200
committerSylvain MOUQUET <sylvain.mouquet@gmail.com>2022-07-10 11:22:47 +0200
commit4b5ae8aded3a8b97e0b08d6042a7d16d0d5330c4 (patch)
tree16b119c812bec2aa838ea39e9e79a7970657af4d
parentcf7012841db7661562d5eda26a6e743cba683494 (diff)
chore(ci): add pyright
-rw-r--r--.github/workflows/test.yml6
-rw-r--r--dev-requirements.txt3
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