mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 20:24:30 +08:00
Fixup some pyright CI configuration details (#12690)
This commit is contained in:
1
.github/workflows/meta_tests.yml
vendored
1
.github/workflows/meta_tests.yml
vendored
@@ -61,7 +61,6 @@ jobs:
|
||||
version: PATH
|
||||
python-platform: ${{ matrix.python-platform }}
|
||||
python-version: "3.9" # Oldest version supported for running scripts and tests
|
||||
extra-args: --threads
|
||||
project: ./pyrightconfig.scripts_and_tests.json
|
||||
stubsabot-dry-run:
|
||||
name: Stubsabot dry run
|
||||
|
||||
3
.github/workflows/tests.yml
vendored
3
.github/workflows/tests.yml
vendored
@@ -145,7 +145,6 @@ jobs:
|
||||
version: PATH
|
||||
python-platform: ${{ matrix.python-platform }}
|
||||
python-version: ${{ matrix.python-version }}
|
||||
extra-args: --threads
|
||||
annotate: ${{ matrix.python-version == '3.12' && 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
|
||||
@@ -153,7 +152,6 @@ jobs:
|
||||
version: PATH
|
||||
python-platform: ${{ matrix.python-platform }}
|
||||
python-version: ${{ matrix.python-version }}
|
||||
extra-args: --threads
|
||||
annotate: ${{ matrix.python-version == '3.12' && matrix.python-platform == 'Linux' }} # Having each job create the same comment is too noisy.
|
||||
project: ./pyrightconfig.stricter.json
|
||||
- name: Run pyright on the test cases
|
||||
@@ -162,7 +160,6 @@ jobs:
|
||||
version: PATH
|
||||
python-platform: ${{ matrix.python-platform }}
|
||||
python-version: ${{ matrix.python-version }}
|
||||
extra-args: --threads
|
||||
annotate: ${{ matrix.python-version == '3.12' && matrix.python-platform == 'Linux' }} # Having each job create the same comment is too noisy.
|
||||
project: ./pyrightconfig.testcases.json
|
||||
|
||||
|
||||
@@ -100,7 +100,6 @@
|
||||
"stubs/vobject",
|
||||
"stubs/workalendar",
|
||||
"stubs/wurlitzer",
|
||||
"stubs/xdgenvpy"
|
||||
],
|
||||
"typeCheckingMode": "strict",
|
||||
// TODO: Complete incomplete stubs
|
||||
|
||||
@@ -37,7 +37,7 @@ def main() -> None:
|
||||
# version installed into the virtual environment, due to failures on some
|
||||
# platforms. https://github.com/python/typeshed/issues/11614
|
||||
os.environ["PYRIGHT_PYTHON_FORCE_VERSION"] = pyright_version
|
||||
command = [npx, f"pyright@{pyright_version}"] + sys.argv[1:] + ["--threads"]
|
||||
command = [npx, f"pyright@{pyright_version}"] + sys.argv[1:]
|
||||
print_command(command)
|
||||
|
||||
ret = subprocess.run(command).returncode
|
||||
|
||||
Reference in New Issue
Block a user