coc-pyright 1.1.332 → 1.1.334

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.
Files changed (3) hide show
  1. package/README.md +2 -2
  2. package/lib/index.js +1410 -1093
  3. package/package.json +48 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coc-pyright",
3
- "version": "1.1.332",
3
+ "version": "1.1.334",
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",
@@ -42,7 +42,7 @@
42
42
  "@types/which": "^3.0.0",
43
43
  "@typescript-eslint/eslint-plugin": "^6.4.1",
44
44
  "@typescript-eslint/parser": "^6.4.1",
45
- "@zzzen/pyright-internal": "^1.2.0-dev.20231015",
45
+ "@zzzen/pyright-internal": "^1.2.0-dev.20231022",
46
46
  "coc.nvim": "^0.0.83-next.18",
47
47
  "diff-match-patch": "^1.0.5",
48
48
  "esbuild": "^0.19.2",
@@ -159,6 +159,33 @@
159
159
  ],
160
160
  "scope": "resource"
161
161
  },
162
+ "python.analysis.include": {
163
+ "type": "array",
164
+ "default": [],
165
+ "items": {
166
+ "type": "string"
167
+ },
168
+ "description": "Paths of directories or files that should be included. If no paths are specified, pyright defaults to the workspace root directory. Paths may contain wildcard characters ** (a directory or multiple levels of directories), * (a sequence of zero or more characters), or ? (a single character).",
169
+ "scope": "resource"
170
+ },
171
+ "python.analysis.exclude": {
172
+ "type": "array",
173
+ "default": [],
174
+ "items": {
175
+ "type": "string"
176
+ },
177
+ "description": "Paths of directories or files that should not be included. These override the include directories, allowing specific subdirectories to be excluded. Note that files in the exclude paths may still be included in the analysis if they are referenced (imported) by source files that are not excluded. Paths may contain wildcard characters ** (a directory or multiple levels of directories), * (a sequence of zero or more characters), or ? (a single character). If no exclude paths are specified, pyright automatically excludes the following: `**/node_modules`, `**/__pycache__`, `.git` and any virtual environment directories.",
178
+ "scope": "resource"
179
+ },
180
+ "python.analysis.ignore": {
181
+ "type": "array",
182
+ "default": [],
183
+ "items": {
184
+ "type": "string"
185
+ },
186
+ "description": "Paths of directories or files whose diagnostic output (errors and warnings) should be suppressed even if they are an included file or within the transitive closure of an included file. Paths may contain wildcard characters ** (a directory or multiple levels of directories), * (a sequence of zero or more characters), or ? (a single character). If no value is provided, the value of python.linting.ignorePatterns (if set) will be used.",
187
+ "scope": "resource"
188
+ },
162
189
  "python.analysis.diagnosticSeverityOverrides": {
163
190
  "type": "object",
164
191
  "description": "Allows a user to override the severity levels for individual diagnostics.",
@@ -1344,6 +1371,21 @@
1344
1371
  "description": "Path to Black, you can use a custom version of Black by modifying this setting to include the full path.",
1345
1372
  "scope": "resource"
1346
1373
  },
1374
+ "python.formatting.ruffArgs": {
1375
+ "type": "array",
1376
+ "description": "Arguments passed in. Each argument is a separate item in the array.",
1377
+ "default": [],
1378
+ "items": {
1379
+ "type": "string"
1380
+ },
1381
+ "scope": "resource"
1382
+ },
1383
+ "python.formatting.ruffPath": {
1384
+ "type": "string",
1385
+ "default": "ruff",
1386
+ "description": "Path to ruff, you can use a custom version of ruff by modifying this setting to include the full path.",
1387
+ "scope": "resource"
1388
+ },
1347
1389
  "python.formatting.pyinkArgs": {
1348
1390
  "type": "array",
1349
1391
  "description": "Arguments passed in. Each argument is a separate item in the array.",
@@ -1356,7 +1398,7 @@
1356
1398
  "python.formatting.pyinkPath": {
1357
1399
  "type": "string",
1358
1400
  "default": "pyink",
1359
- "description": "Path to Pyink, you can use a custom version of Black by modifying this setting to include the full path.",
1401
+ "description": "Path to Pyink, you can use a custom version of pyink by modifying this setting to include the full path.",
1360
1402
  "scope": "resource"
1361
1403
  },
1362
1404
  "python.formatting.darkerArgs": {
@@ -1433,6 +1475,7 @@
1433
1475
  "pyink",
1434
1476
  "blackd",
1435
1477
  "yapf",
1478
+ "ruff",
1436
1479
  "none"
1437
1480
  ],
1438
1481
  "scope": "resource"
@@ -1543,7 +1586,7 @@
1543
1586
  "commands": [
1544
1587
  {
1545
1588
  "command": "python.sortImports",
1546
- "title": "Sort Imports by isort",
1589
+ "title": "Sort Imports by isort or ruff",
1547
1590
  "category": "Pyright"
1548
1591
  },
1549
1592
  {
@@ -1584,6 +1627,6 @@
1584
1627
  ]
1585
1628
  },
1586
1629
  "dependencies": {
1587
- "pyright": "^1.1.332"
1630
+ "pyright": "^1.1.334"
1588
1631
  }
1589
1632
  }