Skip to content

Commit

Permalink
Simplify pyright version obtention (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam authored Sep 21, 2024
1 parent 711850e commit f890ae3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/lint-and-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,8 @@ jobs:
- name: Get pyright version
id: pyright_version
run: |
PYRIGHT_VERSION=$(grep '$pyrightVersion = ' 'scripts/lint.ps1' | cut -d "#" -f 1 | cut -d = -f 2 | tr -d ' ')
PYRIGHT_VERSION=$(grep '$pyrightVersion = ' 'scripts/lint.ps1' | cut -d "#" -f 1 | cut -d = -f 2 | tr -d " '")
echo pyright version: "${PYRIGHT_VERSION}"
if [ "$PYRIGHT_VERSION" = "'latest'" ]; then
PYRIGHT_VERSION=
fi
echo PYRIGHT_VERSION="${PYRIGHT_VERSION}" >> "${GITHUB_OUTPUT}"
shell: bash
- name: Analysing the code with Pyright
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ Not a developer? You can still help through the following methods:
- <https://github.com/opencv/opencv/issues/18305>
- <https://github.com/opencv/opencv/issues/23906>
- <https://github.com/pywinrt/python-winsdk/issues/11>
- <https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/807>
- <https://github.com/microsoft/vscode/issues/40239>
- <https://github.com/microsoft/vscode/issues/168411>
- <https://github.com/python/mypy/issues/6700>
Expand Down

0 comments on commit f890ae3

Please sign in to comment.