Skip to content

Commit bb09802

Browse files
committed
Use global Pyright with a specified Python version rather than Pyright in the local Python environment
PyPI Pyright doesn't support Python 3.5 Signed-off-by: jakub-nt <175944085+jakub-nt@users.noreply.github.com>
1 parent a7f8bbc commit bb09802

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/actions/set-up-legacy-python/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ runs:
2222
command: pip install -U pip
2323
- name: Install dependencies
2424
run: |
25-
python -m pip install flake8 pyright pytest setuptools wheel
25+
python -m pip install flake8 pytest setuptools wheel
2626
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
2727
shell: bash

.github/workflows/python-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
flake8 . --ignore=E203,W503,E722,E731 --max-complexity=100 --max-line-length=160
3838
- name: Lint with pyright (type checking)
3939
run: |
40-
pyright cfbs
40+
pyright cfbs --pythonversion ${{ matrix.python-version }}
4141
- name: Test with pytest
4242
run: |
4343
pytest
@@ -73,7 +73,7 @@ jobs:
7373
python -m flake8 . --ignore=E203,W503,E722,E731 --max-complexity=100 --max-line-length=160
7474
- name: Lint with pyright (type checking)
7575
run: |
76-
python -m pyright cfbs
76+
pyright cfbs --pythonversion ${{ matrix.python-version }}
7777
- name: Test with pytest
7878
run: |
7979
python -m pytest

0 commit comments

Comments
 (0)