coc-pyright 1.1.272 → 1.1.280

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coc-pyright",
3
- "version": "1.1.272",
3
+ "version": "1.1.280",
4
4
  "description": "Pyright extension for coc.nvim, static type checker for Python",
5
5
  "author": "Heyward Fann <fannheyward@gmail.com>",
6
6
  "license": "MIT",
@@ -44,7 +44,7 @@
44
44
  "@types/which": "^2.0.0",
45
45
  "@typescript-eslint/eslint-plugin": "^5.6.0",
46
46
  "@typescript-eslint/parser": "^5.6.0",
47
- "@zzzen/pyright-internal": "^1.2.0-dev.20220918",
47
+ "@zzzen/pyright-internal": "^1.2.0-dev.20221016",
48
48
  "coc.nvim": "^0.0.82",
49
49
  "diff-match-patch": "^1.0.5",
50
50
  "esbuild": "^0.15.6",
@@ -97,11 +97,6 @@
97
97
  "default": true,
98
98
  "description": "Enable coc-pyright extension"
99
99
  },
100
- "pyright.inlayHints.enable": {
101
- "type": "boolean",
102
- "default": true,
103
- "description": "Enable/disable inlay hints feature"
104
- },
105
100
  "pyright.inlayHints.functionReturnTypes": {
106
101
  "type": "boolean",
107
102
  "default": true,
@@ -815,6 +810,17 @@
815
810
  "error"
816
811
  ]
817
812
  },
813
+ "reportShadowedImports": {
814
+ "type": "string",
815
+ "description": "Diagnostics for files that are overriding a module in the stdlib.",
816
+ "default": "none",
817
+ "enum": [
818
+ "none",
819
+ "information",
820
+ "warning",
821
+ "error"
822
+ ]
823
+ },
818
824
  "reportUnusedExpression": {
819
825
  "type": "string",
820
826
  "description": "Diagnostics for simple expressions whose value is not used in any way.",
@@ -1134,6 +1140,39 @@
1134
1140
  "description": "Path to pydocstyle, you can use a custom version of pydocstyle by modifying this setting to include the full path.",
1135
1141
  "scope": "resource"
1136
1142
  },
1143
+ "python.linting.pyflakesEnabled": {
1144
+ "type": "boolean",
1145
+ "default": false,
1146
+ "description": "Whether to lint Python files using pyflakes.",
1147
+ "scope": "resource"
1148
+ },
1149
+ "python.linting.pyflakesPath": {
1150
+ "type": "string",
1151
+ "default": "pyflakes",
1152
+ "description": "Path to pyflakes, you can use a custom version of pyflakes by modifying this setting to include the full path.",
1153
+ "scope": "resource"
1154
+ },
1155
+ "python.linting.ruffEnabled": {
1156
+ "type": "boolean",
1157
+ "default": false,
1158
+ "description": "Whether to lint Python files using ruff.",
1159
+ "scope": "resource"
1160
+ },
1161
+ "python.linting.ruffPath": {
1162
+ "type": "string",
1163
+ "default": "ruff",
1164
+ "description": "Path to ruff, you can use a custom version of ruff by modifying this setting to include the full path.",
1165
+ "scope": "resource"
1166
+ },
1167
+ "python.linting.ruffArgs": {
1168
+ "type": "array",
1169
+ "description": "Arguments passed in. Each argument is a separate item in the array.",
1170
+ "default": [],
1171
+ "items": {
1172
+ "type": "string"
1173
+ },
1174
+ "scope": "resource"
1175
+ },
1137
1176
  "python.linting.pylamaArgs": {
1138
1177
  "type": "array",
1139
1178
  "description": "Arguments passed in. Each argument is a separate item in the array.",
@@ -1323,7 +1362,7 @@
1323
1362
  "python.formatting.blackdHTTPHeaders": {
1324
1363
  "type": "object",
1325
1364
  "default": {},
1326
- "description": "Custom headers POST to blackd server, checkout https://black.readthedocs.io/en/stable/usage_and_configuration/black_as_a_server.html#protocol",
1365
+ "markdownDescription": "Custom headers POST to blackd server, checkout <https://black.readthedocs.io/en/stable/usage_and_configuration/black_as_a_server.html#protocol>",
1327
1366
  "scope": "resource"
1328
1367
  },
1329
1368
  "python.formatting.provider": {
@@ -1486,6 +1525,6 @@
1486
1525
  ]
1487
1526
  },
1488
1527
  "dependencies": {
1489
- "pyright": "^1.1.272"
1528
+ "pyright": "^1.1.280"
1490
1529
  }
1491
1530
  }
@@ -508,6 +508,12 @@
508
508
  "title": "Controls reporting of 'match' statements that do not exhaustively match all possible values",
509
509
  "default": "none"
510
510
  },
511
+ "reportShadowedImports": {
512
+ "$id": "#/properties/reportShadowedImports",
513
+ "$ref": "#/definitions/diagnostic",
514
+ "title": "Controls reporting of shadowed imports of stdlib modules",
515
+ "default": "none"
516
+ },
511
517
  "extraPaths": {
512
518
  "$id": "#/properties/extraPaths",
513
519
  "type": "array",