"chore: migrate Pyright branding to Vipeye/vipeye across docs and tooling
- Rewrite root README and docs for Vipeye - Rename pyright-test-policy to vipeye-test-policy - Update CI/Azure pipelines, perfCompare.py and package metadata - Keep upstream links, external tool params and # pyright: ignore compat"
This commit is contained in:
1 parent
de1160be61
commit
58c3e255e6
75 files changed
+900
-1002
No files matched your search
@@ -3,7 +3,7 @@ name: 'Build'
|
||||
env:
|
||||
NODE_VERSION: '22.x' # Shipped with VS Code.
|
||||
ARTIFACT_NAME_VSIX: vsix
|
||||
VSIX_NAME: vscode-pyright.vsix
|
||||
VSIX_NAME: vscode-vipeye.vsix
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -12,7 +12,7 @@ on:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
if: github.repository == 'microsoft/pyright'
|
||||
if: github.repository == 'TermiNexus/Viper_VSCode'
|
||||
runs-on: ubuntu-latest
|
||||
name: Build
|
||||
|
||||
@@ -32,18 +32,18 @@ jobs:
|
||||
- run: npm run install:all
|
||||
|
||||
- name: Build VSIX
|
||||
working-directory: packages/vscode-pyright
|
||||
working-directory: packages/vscode-vipeye
|
||||
run: |
|
||||
npm run package
|
||||
mv pyright-*.vsix ${{ env.VSIX_NAME }}
|
||||
mv vipeye-*.vsix ${{ env.VSIX_NAME }}
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{ env.ARTIFACT_NAME_VSIX }}
|
||||
path: packages/vscode-pyright/${{ env.VSIX_NAME }}
|
||||
path: packages/vscode-vipeye/${{ env.VSIX_NAME }}
|
||||
|
||||
create_release:
|
||||
if: github.repository == 'microsoft/pyright'
|
||||
if: github.repository == 'TermiNexus/Viper_VSCode'
|
||||
runs-on: ubuntu-latest
|
||||
name: Create release
|
||||
needs: [build]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# This workflow runs mypy_primer, a tool that runs pyright on a variety
|
||||
# of open-source Python projects that are known to type check with pyright.
|
||||
# It builds pyright from the latest PR commit and the merge base of the PR
|
||||
# This workflow runs mypy_primer, a tool that runs vipeye on a variety
|
||||
# of open-source Python projects that are known to type check with vipeye.
|
||||
# It builds vipeye from the latest PR commit and the merge base of the PR
|
||||
# and compares the output of both. It uploads the diffs as an artifact and
|
||||
# creates a PR comment with the results (with the help of the
|
||||
# mypy_primer_comment action).
|
||||
@@ -8,8 +8,8 @@
|
||||
# This workflow definition borrows liberally from the mypy repo. The original
|
||||
# workflow was designed to work in a sharded manner where n copies of
|
||||
# mypy_primer are started in parallel. Each instance runs 1/n of the projects.
|
||||
# For now, we run only one instance because pyright is fast, and the number
|
||||
# of projects that use pyright for type checking is small. To change this in
|
||||
# For now, we run only one instance because vipeye is fast, and the number
|
||||
# of projects that use vipeye for type checking is small. To change this in
|
||||
# the future, change the 'shard_index' matrix to [0, 1, ..., n-1] and set
|
||||
# 'num-shards' to n.
|
||||
|
||||
@@ -22,9 +22,9 @@ on:
|
||||
# Run on the creation or update of a PR.
|
||||
pull_request:
|
||||
paths:
|
||||
- 'packages/pyright/**'
|
||||
- 'packages/pyright-internal/src/**'
|
||||
- 'packages/pyright-internal/typeshed-fallback/**'
|
||||
- 'packages/vipeye/**'
|
||||
- 'packages/vipeye-internal/src/**'
|
||||
- 'packages/vipeye-internal/typeshed-fallback/**'
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# This workflow runs mypy_primer, a tool that runs pyright on a variety
|
||||
# of open-source Python projects that are known to type check with pyright.
|
||||
# It builds pyright from the latest commit and the last release tag and
|
||||
# This workflow runs mypy_primer, a tool that runs vipeye on a variety
|
||||
# of open-source Python projects that are known to type check with vipeye.
|
||||
# It builds vipeye from the latest commit and the last release tag and
|
||||
# compares the output of both. It uploads the diffs as an artifact.
|
||||
name: Run mypy_primer on push
|
||||
|
||||
@@ -13,9 +13,9 @@ on:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- 'packages/pyright/**'
|
||||
- 'packages/pyright-internal/src/**'
|
||||
- 'packages/pyright-internal/typeshed-fallback/**'
|
||||
- 'packages/vipeye/**'
|
||||
- 'packages/vipeye-internal/src/**'
|
||||
- 'packages/vipeye-internal/typeshed-fallback/**'
|
||||
# Also run manually if requested.
|
||||
workflow_dispatch:
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ on:
|
||||
|
||||
jobs:
|
||||
typecheck:
|
||||
if: github.repository == 'microsoft/pyright'
|
||||
if: github.repository == 'TermiNexus/Viper_VSCode'
|
||||
runs-on: ubuntu-latest
|
||||
name: Typecheck
|
||||
|
||||
@@ -34,7 +34,7 @@ jobs:
|
||||
- run: npx lerna exec --stream --no-bail -- "tsc --noEmit"
|
||||
|
||||
style:
|
||||
if: github.repository == 'microsoft/pyright'
|
||||
if: github.repository == 'TermiNexus/Viper_VSCode'
|
||||
runs-on: ubuntu-latest
|
||||
name: Style
|
||||
|
||||
@@ -79,9 +79,9 @@ jobs:
|
||||
|
||||
- run: npm run install:all
|
||||
|
||||
- name: npm test (pyright-internal)
|
||||
- name: npm test (vipeye-internal)
|
||||
run: npm test
|
||||
working-directory: packages/pyright-internal
|
||||
working-directory: packages/vipeye-internal
|
||||
|
||||
# Install python so we can create a VENV for tests
|
||||
- name: Use Python ${{env.PYTHON_VERSION}}
|
||||
@@ -117,13 +117,13 @@ jobs:
|
||||
CI_IMPORT_TEST_VENVPATH: '../../'
|
||||
CI_IMPORT_TEST_VENV: '.venv'
|
||||
run: npm run test:imports
|
||||
working-directory: packages/pyright-internal
|
||||
working-directory: packages/vipeye-internal
|
||||
|
||||
- name: Run import tests with pythonpath
|
||||
env:
|
||||
CI_IMPORT_TEST_PYTHONPATH: ${{env.python_venv_path}}
|
||||
run: npm run test:imports
|
||||
working-directory: packages/pyright-internal
|
||||
working-directory: packages/vipeye-internal
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -145,13 +145,13 @@ jobs:
|
||||
- uses: ./.github/actions/choose-npm-install
|
||||
|
||||
- run: npm publish --dry-run
|
||||
working-directory: packages/pyright
|
||||
working-directory: packages/vipeye
|
||||
|
||||
- run: npm publish --dry-run
|
||||
working-directory: packages/pyright-typeserver
|
||||
working-directory: packages/vipeye-typeserver
|
||||
|
||||
- run: npm run package
|
||||
working-directory: packages/vscode-pyright
|
||||
working-directory: packages/vscode-vipeye
|
||||
|
||||
required:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in new issue
Block a user