mirror of
https://github.com/microsoft/pyright.git
synced 2024-10-06 04:47:52 +03:00
a5b352d929
* Preliminary idea * First commit * Refactor all uri based path functions to uriUtils * Most of real code building * More tests working * More progress on the tests * Rest of typecheck errors * Move URIs even further to prevent accidental issues * More tests * Relative path fixes * More test fixes and changes to 'startsWith' * Uri tests all passing * remove uri tests from path utils tests * Fix relative paths for partial stub remapping * Make isEmpty look empty and fix empty check for resolved paths * Fix module name retrieval issue * Use map instead of set for URI list * Another path is empty fix. * Fix importresolver finding source files for stubs * Fixup actual defs to match expected format * Relative path differences again * Fix some comparisons * More comparison fixes * Config of ('.') was using current directory to find module names * Shortcut empty URI for existence * Add back ignoring case * Fix regex matching * All tests passing * Fix build after merge * Fix failing tests * Fix rootDirectory and python path from interpreter * Some perf improvements * Don't bother reparsing in file system * More tests and some logging output * Extra data for analyzing slowness * Fix build problems * Refactor to not use vscode.URI except for initial parse * Try without vscode uri validation * Rework to new perf idea * Split out class and interface * All uri tests passing * Fix other tests * Cache results for faster perf * Add memoization decorator * combinePath remove one layer and make key gen faster * Move caches local * Generalize the memoization and optimize zero arg funcs * Cache more stuff * slight speedup for cache saving * slight improvement by just returning the cached item * Small optimization to skip loop if possible * Further speedup for similar calls of combinePath * Make it possible to switch between profiled and not * Another small optimization * Cache files in directory * Small opt for isNativeModuleFileName * Speed up getting pytyped info * Fix command line parsing to expand ~ Slight perf improvement for exists cached by not splitting * Split out instrumenting memoization * Remove instrumented memoizationin * Fix comment * Fix build on ubuntu/mac * Fix windows specific problems with tests Fix auto import to work with windows file paths * Fix command line output * Try fixing CI path for failing test * fix output paths in other spots * More file output locations * Output more data for failing test * Put validation back and fix test * Fix import cycles message to not show URI path * Remove printing of config options * More review feedback * Missed a spot in the review feedback * Fix build error * Update packages/pyright-internal/src/analyzer/importResolver.ts Co-authored-by: Erik De Bonte <erikd@microsoft.com> * Update packages/pyright-internal/src/analyzer/analyzerFileInfo.ts Co-authored-by: Erik De Bonte <erikd@microsoft.com> * Update packages/pyright-internal/src/analyzer/backgroundAnalysisProgram.ts Co-authored-by: Erik De Bonte <erikd@microsoft.com> * Review feedback from Erik * Revert changes to launch.json * Fixup config options to use same roots as before * Fix casing for cwd test on windows * Fix spack differences * Add back in the instrumentation until figure import resolve cache * Fixup after merge * Fix another equals comparison * Merge error * Fix after merge * Fixup after merge * Keep track of case sensitivity in the URIs * Fix test failures on windows/mac * Switch to the faster version * Remove memoization * Review feedback for some renames * Review feedback * Feedback from Erik, put back memoization for simple stuff * fix prettier * Fix typo and cache URI creations * Add a comment * Review feedback from Eric * Fix crash in config options * Missed a piece of feedback --------- Co-authored-by: Erik De Bonte <erikd@microsoft.com>
46 lines
1.8 KiB
JSON
46 lines
1.8 KiB
JSON
{
|
|
"name": "pyright-root",
|
|
"private": true,
|
|
"scripts": {
|
|
"postinstall": "node ./build/skipBootstrap.js || npm run install:others",
|
|
"clean": "lerna run --no-bail --stream clean",
|
|
"install:all": "npm install",
|
|
"install:others": "cross-env SKIP_LERNA_BOOTSTRAP=yes lerna exec --no-bail npm install",
|
|
"update:all": "node ./build/updateDeps.js",
|
|
"build:extension:dev": "cd packages/vscode-pyright && npm run webpack",
|
|
"build:cli:dev": "cd packages/pyright && npm run webpack",
|
|
"watch:extension": "cd packages/vscode-pyright && npm run webpack-dev",
|
|
"check": "npm run check:syncpack && npm run check:eslint && npm run check:prettier",
|
|
"check:syncpack": "syncpack list-mismatches",
|
|
"fix:syncpack": "syncpack fix-mismatches --indent \" \" && npm run install:all",
|
|
"check:eslint": "eslint .",
|
|
"fix:eslint": "eslint --fix .",
|
|
"check:prettier": "prettier -c .",
|
|
"fix:prettier": "prettier --write .",
|
|
"typecheck": "npx lerna exec --stream --no-bail --ignore=pyright -- tsc --noEmit"
|
|
},
|
|
"devDependencies": {
|
|
"@types/glob": "^7.2.0",
|
|
"@types/node": "^17.0.45",
|
|
"@types/yargs": "^16.0.5",
|
|
"@typescript-eslint/eslint-plugin": "^6.1.0",
|
|
"@typescript-eslint/parser": "^6.1.0",
|
|
"cross-env": "^7.0.3",
|
|
"detect-indent": "^6.1.0",
|
|
"eslint": "^8.45.0",
|
|
"eslint-config-prettier": "^8.8.0",
|
|
"eslint-plugin-simple-import-sort": "^10.0.0",
|
|
"glob": "^7.2.3",
|
|
"jsonc-parser": "^3.2.0",
|
|
"lerna": "^7.1.4",
|
|
"nx": "^16.5.3",
|
|
"npm-check-updates": "^16.10.16",
|
|
"p-queue": "^7.3.4",
|
|
"prettier": "2.8.8",
|
|
"syncpack": "~10.6.1",
|
|
"typescript": "~5.2",
|
|
"word-wrap": "1.2.4",
|
|
"yargs": "^16.2.0"
|
|
}
|
|
}
|