Skip to content

Commit f890ae3

Browse files
authored
Simplify pyright version obtention (#295)
1 parent 711850e commit f890ae3

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.github/workflows/lint-and-build.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,8 @@ jobs:
8181
- name: Get pyright version
8282
id: pyright_version
8383
run: |
84-
PYRIGHT_VERSION=$(grep '$pyrightVersion = ' 'scripts/lint.ps1' | cut -d "#" -f 1 | cut -d = -f 2 | tr -d ' ')
84+
PYRIGHT_VERSION=$(grep '$pyrightVersion = ' 'scripts/lint.ps1' | cut -d "#" -f 1 | cut -d = -f 2 | tr -d " '")
8585
echo pyright version: "${PYRIGHT_VERSION}"
86-
if [ "$PYRIGHT_VERSION" = "'latest'" ]; then
87-
PYRIGHT_VERSION=
88-
fi
8986
echo PYRIGHT_VERSION="${PYRIGHT_VERSION}" >> "${GITHUB_OUTPUT}"
9087
shell: bash
9188
- name: Analysing the code with Pyright

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ Not a developer? You can still help through the following methods:
101101
- <https://github.com/opencv/opencv/issues/18305>
102102
- <https://github.com/opencv/opencv/issues/23906>
103103
- <https://github.com/pywinrt/python-winsdk/issues/11>
104+
- <https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/807>
104105
- <https://github.com/microsoft/vscode/issues/40239>
105106
- <https://github.com/microsoft/vscode/issues/168411>
106107
- <https://github.com/python/mypy/issues/6700>

0 commit comments

Comments
 (0)