Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
230 changes: 208 additions & 22 deletions .basedpyright/baseline.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
{
"files": {
"./build/py3_8/generate_docstubs.py": [
{
"code": "reportUnusedCallResult",
"range": {
"startColumn": 8,
"endColumn": 71,
"lineCount": 1
}
},
{
"code": "reportUnusedCallResult",
"range": {
"startColumn": 8,
"endColumn": 70,
"lineCount": 1
}
}
],
"./build/py_latest/docs_macros.py": [
{
"code": "reportAny",
Expand All @@ -10,7 +28,49 @@
}
}
],
"./build/py_latest/generateUnicodeTables.py": [
"./build/py_latest/localization_helper.py": [
{
"code": "reportDeprecated",
"range": {
"startColumn": 44,
"endColumn": 48,
"lineCount": 1
}
},
{
"code": "reportDeprecated",
"range": {
"startColumn": 61,
"endColumn": 66,
"lineCount": 1
}
},
{
"code": "reportDeprecated",
"range": {
"startColumn": 14,
"endColumn": 18,
"lineCount": 1
}
},
{
"code": "reportDeprecated",
"range": {
"startColumn": 24,
"endColumn": 29,
"lineCount": 1
}
},
{
"code": "reportIncompatibleUnannotatedOverride",
"range": {
"startColumn": 13,
"endColumn": 22,
"lineCount": 1
}
}
],
"./build/py_latest/upstream/generateUnicodeTables.py": [
{
"code": "reportUnusedCallResult",
"range": {
Expand Down Expand Up @@ -124,62 +184,188 @@
}
}
],
"./build/py_latest/localization_helper.py": [
"./build/py_latest/upstream/updateTypeshed.py": [
{
"code": "reportDeprecated",
"code": "reportUnusedImport",
"range": {
"startColumn": 44,
"endColumn": 48,
"startColumn": 7,
"endColumn": 9,
"lineCount": 1
}
},
{
"code": "reportDeprecated",
"code": "reportUnknownParameterType",
"range": {
"startColumn": 61,
"endColumn": 66,
"startColumn": 4,
"endColumn": 19,
"lineCount": 1
}
},
{
"code": "reportDeprecated",
"code": "reportMissingTypeArgument",
"range": {
"startColumn": 14,
"endColumn": 18,
"startColumn": 51,
"endColumn": 78,
"lineCount": 1
}
},
{
"code": "reportDeprecated",
"code": "reportUnusedCallResult",
"range": {
"startColumn": 24,
"endColumn": 29,
"startColumn": 8,
"endColumn": 88,
"lineCount": 1
}
},
{
"code": "reportIncompatibleUnannotatedOverride",
"code": "reportUnusedCallResult",
"range": {
"startColumn": 13,
"endColumn": 22,
"startColumn": 8,
"endColumn": 61,
"lineCount": 1
}
}
],
"./build/py3_8/generate_docstubs.py": [
},
{
"code": "reportUnusedCallResult",
"range": {
"startColumn": 8,
"endColumn": 71,
"endColumn": 104,
"lineCount": 1
}
},
{
"code": "reportUnknownVariableType",
"range": {
"startColumn": 4,
"endColumn": 10,
"lineCount": 1
}
},
{
"code": "reportUnknownVariableType",
"range": {
"startColumn": 4,
"endColumn": 15,
"lineCount": 1
}
},
{
"code": "reportUnknownMemberType",
"range": {
"startColumn": 18,
"endColumn": 31,
"lineCount": 1
}
},
{
"code": "reportUnknownMemberType",
"range": {
"startColumn": 18,
"endColumn": 37,
"lineCount": 1
}
},
{
"code": "reportUnknownVariableType",
"range": {
"startColumn": 11,
"endColumn": 22,
"lineCount": 1
}
},
{
"code": "reportUnusedCallResult",
"range": {
"startColumn": 12,
"endColumn": 44,
"lineCount": 1
}
},
{
"code": "reportUnusedCallResult",
"range": {
"startColumn": 8,
"endColumn": 70,
"endColumn": 40,
"lineCount": 1
}
},
{
"code": "reportUnusedCallResult",
"range": {
"startColumn": 4,
"endColumn": 46,
"lineCount": 1
}
},
{
"code": "reportUnusedCallResult",
"range": {
"startColumn": 4,
"endColumn": 5,
"lineCount": 7
}
},
{
"code": "reportUnusedCallResult",
"range": {
"startColumn": 4,
"endColumn": 5,
"lineCount": 6
}
},
{
"code": "reportAny",
"range": {
"startColumn": 7,
"endColumn": 19,
"lineCount": 1
}
},
{
"code": "reportAny",
"range": {
"startColumn": 11,
"endColumn": 22,
"lineCount": 1
}
},
{
"code": "reportAny",
"range": {
"startColumn": 43,
"endColumn": 54,
"lineCount": 1
}
},
{
"code": "reportAny",
"range": {
"startColumn": 61,
"endColumn": 72,
"lineCount": 1
}
},
{
"code": "reportAny",
"range": {
"startColumn": 61,
"endColumn": 72,
"lineCount": 1
}
},
{
"code": "reportAny",
"range": {
"startColumn": 29,
"endColumn": 37,
"lineCount": 1
}
},
{
"code": "reportAny",
"range": {
"startColumn": 29,
"endColumn": 37,
"lineCount": 1
}
}
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@
"pylint.ignorePatterns": [
"**/pyright-internal/src/tests/samples/*",
"**/pyright-internal/typeshed-fallback/*",
"**/docstubs/*"
"**/docstubs/*",
"**/build/py_latest/upstream/*",
],
// even though python.terminal.activateEnvInCurrentTerminal is enabled, we still need to add the venv's script folder to the PATH
// because vscode's npm tasks do not run with the activated venv
Expand Down
2 changes: 1 addition & 1 deletion build/azuredevops/azure-pipelines-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ extends:
- task: ManualValidation@0
timeoutInMinutes: 120 # task times out in 2 hours
inputs:
notifyUsers: 'plseng@microsoft.com,eric@traut.com,rchiodo@microsoft.com,bschnurr@microsoft.com,graham.wheeler@microsoft.com'
notifyUsers: '[DevDiv]\Python.Language Server,eric@traut.com'
instructions: 'In the next 2 hours please test the latest draft release of Pyright, then Publish the release in GitHub.'
onTimeout: 'reject' # require sign-off

Expand Down
5 changes: 5 additions & 0 deletions build/py_latest/upstream/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"""
scripts that come from upstream that we don't care about. they are only used by pyright maintainers so we never need to use them

we only keep these scripts to reduce upstream conflicts.
"""
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
# Generates the content of unicode.ts based on the official Unicode
# character database.

# this file comes from upstream and we don't use it so we disable the linters & baseline its basedpyright errors
# pylint: skip-file

import sys
import urllib.request
from io import TextIOWrapper
Expand Down
Loading
Loading