coc-pyright 1.1.269 → 1.1.270

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 +12 -9
  2. package/lib/index.js +48147 -47844
  3. package/package.json +32 -7
package/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # coc-pyright
2
2
 
3
3
  <!-- markdownlint-disable no-inline-html -->
4
+
4
5
  <a href="https://github.com/sponsors/fannheyward"><img src="https://user-images.githubusercontent.com/345274/133218454-014a4101-b36a-48c6-a1f6-342881974938.png" alt="GitHub Sponsors" /></a>
5
6
  <a href="https://patreon.com/fannheyward"><img src="https://c5.patreon.com/external/logo/become_a_patron_button.png" alt="Patreon donate button" /></a>
6
7
  <a href="https://paypal.me/fannheyward"><img src="https://user-images.githubusercontent.com/345274/104303610-41149f00-5505-11eb-88b2-5a95c53187b4.png" alt="PayPal donate button" /></a>
@@ -14,7 +15,7 @@
14
15
 
15
16
  `:CocInstall coc-pyright`
16
17
 
17
- Note: Pyright may not work as expected if can't detect *project root* correctly, check [#521](https://github.com/fannheyward/coc-pyright/issues/521#issuecomment-858530052) and [Using workspaceFolders](https://github.com/neoclide/coc.nvim/wiki/Using-workspaceFolders#resolve-workspace-folder) in coc.nvim.
18
+ Note: Pyright may not work as expected if can't detect _project root_ correctly, check [#521](https://github.com/fannheyward/coc-pyright/issues/521#issuecomment-858530052) and [Using workspaceFolders](https://github.com/neoclide/coc.nvim/wiki/Using-workspaceFolders#resolve-workspace-folder) in coc.nvim.
18
19
 
19
20
  ## Commands
20
21
 
@@ -75,6 +76,9 @@ These configurations are used by `coc-pyright`, you need to set them in your `co
75
76
  | pyright.inlayHints.enable | Enable inlay hints feature | true |
76
77
  | pyright.inlayHints.functionReturnTypes | Enable inlay hints for function return types | true |
77
78
  | pyright.inlayHints.variableTypes | Enable inlay hints for variable types | true |
79
+ | pyright.testing.provider | Provider for testing, supports `unittest` and `pytest` | unittest |
80
+ | pyright.testing.unittestArgs | Arguments passed to unittest | [] |
81
+ | pyright.testing.pytestArgs | Arguments passed to pytest | [] |
78
82
 
79
83
  Additional configuration options can be found in [package.json](./package.json).
80
84
 
@@ -96,15 +100,14 @@ files for well-known packages may also be obtained from 3rd party, for example:
96
100
  ## Conda setup
97
101
 
98
102
  1. Create the following file:
99
- ```
100
- #!/bin/bash
101
- python "$@"
102
- ```
103
+
104
+ ```sh
105
+ #!/bin/bash
106
+ python "$@"
107
+ ```
108
+
103
109
  2. Make it executable: `chmod +x $path`
104
- 3. Add the following to your `coc-settings.json`:
105
- ```
106
- "python.pythonPath": "<PUT PATH HERE>"
107
- ```
110
+ 3. Set `python.pythonPath` in your `coc-settings.json`: `"python.pythonPath": "<PUT PATH HERE>"`
108
111
  4. Activate the environment before starting vim
109
112
 
110
113
  This way python from your currently activated environment will be used