mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 20:24:30 +08:00
Install pyright from PyPI (#11575)
This commit is contained in:
13
.github/renovate.json
vendored
13
.github/renovate.json
vendored
@@ -7,17 +7,6 @@
|
||||
"pre-commit": {
|
||||
"enabled": true
|
||||
},
|
||||
"customManagers": [
|
||||
{
|
||||
"customType": "regex",
|
||||
"fileMatch": ["^pyproject.toml$"],
|
||||
"matchStrings": [
|
||||
"\\n\\[tool\\.typeshed\\]\\npyright_version\\s*=\\s*(\"|')(?<currentValue>[\\d.]*?)(\"|')\\s*?\\n"
|
||||
],
|
||||
"depNameTemplate": "pyright",
|
||||
"datasourceTemplate": "npm"
|
||||
}
|
||||
],
|
||||
"packageRules": [
|
||||
{
|
||||
"groupName": "GitHub Actions",
|
||||
@@ -36,7 +25,7 @@
|
||||
},
|
||||
{
|
||||
"groupName": "pytype and pyright",
|
||||
"matchManagers": ["pip_requirements", "regex"],
|
||||
"matchManagers": ["pip_requirements"],
|
||||
"matchPackageNames": ["pytype", "pyright"],
|
||||
"description": "Daily update of pyright and pytype",
|
||||
"separateMajorMinor": "false",
|
||||
|
||||
10
.github/workflows/meta_tests.yml
vendored
10
.github/workflows/meta_tests.yml
vendored
@@ -57,15 +57,15 @@ jobs:
|
||||
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
- run: uv pip install -r requirements-tests.txt --system
|
||||
- name: Get pyright version
|
||||
uses: SebRollen/toml-action@v1.0.2
|
||||
id: pyright_version
|
||||
with:
|
||||
file: "pyproject.toml"
|
||||
field: "tool.typeshed.pyright_version"
|
||||
run: |
|
||||
PYRIGHT_VERSION=$(grep pyright== requirements-tests.txt | cut -d "#" -f 1 | cut -d \; -f 1 | cut -d = -f 3)
|
||||
echo pyright version: "${PYRIGHT_VERSION}"
|
||||
echo PYRIGHT_VERSION="${PYRIGHT_VERSION}" >> "${GITHUB_OUTPUT}"
|
||||
- name: Run pyright on typeshed
|
||||
uses: jakebailey/pyright-action@v2
|
||||
with:
|
||||
version: ${{ steps.pyright_version.outputs.value }}
|
||||
version: ${{ steps.pyright_version.outputs.PYRIGHT_VERSION }}
|
||||
python-platform: ${{ matrix.python-platform }}
|
||||
python-version: "3.9" # The Python version to test against.
|
||||
project: ./pyrightconfig.scripts_and_tests.json
|
||||
|
||||
14
.github/workflows/tests.yml
vendored
14
.github/workflows/tests.yml
vendored
@@ -130,22 +130,22 @@ jobs:
|
||||
- name: List 3rd-party stub dependencies installed
|
||||
run: uv pip freeze
|
||||
- name: Get pyright version
|
||||
uses: SebRollen/toml-action@v1.0.2
|
||||
id: pyright_version
|
||||
with:
|
||||
file: "pyproject.toml"
|
||||
field: "tool.typeshed.pyright_version"
|
||||
run: |
|
||||
PYRIGHT_VERSION=$(grep pyright== requirements-tests.txt | cut -d "#" -f 1 | cut -d \; -f 1 | cut -d = -f 3)
|
||||
echo pyright version: "${PYRIGHT_VERSION}"
|
||||
echo PYRIGHT_VERSION="${PYRIGHT_VERSION}" >> "${GITHUB_OUTPUT}"
|
||||
- name: Run pyright with basic settings on all the stubs
|
||||
uses: jakebailey/pyright-action@v2
|
||||
with:
|
||||
version: ${{ steps.pyright_version.outputs.value }}
|
||||
version: ${{ steps.pyright_version.outputs.PYRIGHT_VERSION }}
|
||||
python-platform: ${{ matrix.python-platform }}
|
||||
python-version: ${{ matrix.python-version }}
|
||||
annotate: ${{ matrix.python-version == '3.11' && matrix.python-platform == 'Linux' }} # Having each job create the same comment is too noisy.
|
||||
- name: Run pyright with stricter settings on some of the stubs
|
||||
uses: jakebailey/pyright-action@v2
|
||||
with:
|
||||
version: ${{ steps.pyright_version.outputs.value }}
|
||||
version: ${{ steps.pyright_version.outputs.PYRIGHT_VERSION }}
|
||||
python-platform: ${{ matrix.python-platform }}
|
||||
python-version: ${{ matrix.python-version }}
|
||||
annotate: ${{ matrix.python-version == '3.11' && matrix.python-platform == 'Linux' }} # Having each job create the same comment is too noisy.
|
||||
@@ -153,7 +153,7 @@ jobs:
|
||||
- name: Run pyright on the test cases
|
||||
uses: jakebailey/pyright-action@v2
|
||||
with:
|
||||
version: ${{ steps.pyright_version.outputs.value }}
|
||||
version: ${{ steps.pyright_version.outputs.PYRIGHT_VERSION }}
|
||||
python-platform: ${{ matrix.python-platform }}
|
||||
python-version: ${{ matrix.python-version }}
|
||||
annotate: ${{ matrix.python-version == '3.11' && matrix.python-platform == 'Linux' }} # Having each job create the same comment is too noisy.
|
||||
|
||||
Reference in New Issue
Block a user