coc-pyright 1.1.304 → 1.1.307
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/README.md +7 -4
- package/esbuild.mjs +24 -0
- package/lib/index.js +33603 -33691
- package/package.json +24 -7
- package/pythonFiles/__pycache__/isort.cpython-311.pyc +0 -0
package/README.md
CHANGED
|
@@ -8,13 +8,14 @@
|
|
|
8
8
|
|
|
9
9
|
[Pyright](https://github.com/microsoft/pyright) extension for coc.nvim, with additional features:
|
|
10
10
|
|
|
11
|
+
- semanticTokens highlighting!
|
|
12
|
+
- inlayHints supports
|
|
11
13
|
- codeActions to add imports, ignore typing check, run tests and more
|
|
12
14
|
- linting with `bandit`, `flake8`, `mypy`, `ruff`, `prospector`, `pycodestyle`, `pydocstyle`, `pyflakes`, `pylama`, `pylint`, `pytype`
|
|
13
|
-
- formatting with `yapf`, `black`, `autopep8`, `darker`, `blackd`
|
|
15
|
+
- formatting with `yapf`, `black`, `autopep8`, `darker`, `blackd`, `pyink`
|
|
14
16
|
- testing with `unittest` or `pytest`, supports codeLens
|
|
15
|
-
- sort imports with `isort`
|
|
17
|
+
- sort imports with `ruff`, `isort` and `pyright`
|
|
16
18
|
- extract method and variables with `rope`
|
|
17
|
-
- inlayHints supports
|
|
18
19
|
|
|
19
20
|
<!-- markdownlint-disable-next-line -->
|
|
20
21
|
<img width="906" alt="10" src="https://user-images.githubusercontent.com/345274/189342412-c80fc8a9-c3d7-4a8b-bbfc-75e5cbddb9a7.png">
|
|
@@ -56,6 +57,8 @@ These configurations are used by `coc-pyright`, you need to set them in your `co
|
|
|
56
57
|
| python.formatting.provider | Provider for formatting | autopep8 |
|
|
57
58
|
| python.formatting.blackPath | Custom path to black | black |
|
|
58
59
|
| python.formatting.blackArgs | Arguments passed to black | [] |
|
|
60
|
+
| python.formatting.pyinkPath | Custom path to pyink | pyink |
|
|
61
|
+
| python.formatting.pyinkArgs | Arguments passed to pyink | [] |
|
|
59
62
|
| python.formatting.blackdPath | Custom path to blackd | blackd |
|
|
60
63
|
| python.formatting.blackdHTTPURL | Custom blackd server url | "" |
|
|
61
64
|
| python.formatting.blackdHTTPHeaders | Custom blackd request headers | {} |
|
|
@@ -84,7 +87,7 @@ These configurations are used by `coc-pyright`, you need to set them in your `co
|
|
|
84
87
|
| pyright.disableProgressNotifications | Disable the initialization and workdone progress notifications | false |
|
|
85
88
|
| pyright.completion.importSupport | Enable `python-import` completion source support | true |
|
|
86
89
|
| pyright.completion.snippetSupport | Enable completion snippets support | true |
|
|
87
|
-
| pyright.organizeimports.provider | Organize imports provider, `pyright` or `isort`
|
|
90
|
+
| pyright.organizeimports.provider | Organize imports provider, `pyright`, `ruff` or `isort` | pyright |
|
|
88
91
|
| pyright.inlayHints.functionReturnTypes | Enable inlay hints for function return types | true |
|
|
89
92
|
| pyright.inlayHints.variableTypes | Enable inlay hints for variable types | true |
|
|
90
93
|
| pyright.testing.provider | Provider for testing, supports `unittest` and `pytest` | unittest |
|
package/esbuild.mjs
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as esbuild from 'esbuild';
|
|
2
|
+
|
|
3
|
+
const options = {
|
|
4
|
+
entryPoints: ['src/index.ts'],
|
|
5
|
+
bundle: true,
|
|
6
|
+
minify: process.env.NODE_ENV === 'production',
|
|
7
|
+
sourcemap: process.env.NODE_ENV === 'development',
|
|
8
|
+
mainFields: ['module', 'main'],
|
|
9
|
+
external: ['coc.nvim'],
|
|
10
|
+
platform: 'node',
|
|
11
|
+
target: 'node14.14',
|
|
12
|
+
outfile: 'lib/index.js',
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
if (process.argv.length > 2 && process.argv[2] === '--watch') {
|
|
16
|
+
const ctx = await esbuild.context(options);
|
|
17
|
+
await ctx.watch();
|
|
18
|
+
console.log('watching...');
|
|
19
|
+
} else {
|
|
20
|
+
const result = await esbuild.build(options);
|
|
21
|
+
if (result.errors.length) {
|
|
22
|
+
console.error(result.errors);
|
|
23
|
+
}
|
|
24
|
+
}
|