coc-pyright 1.1.270 → 1.1.271

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 +13 -3
  2. package/lib/index.js +715 -460
  3. package/package.json +13 -3
package/README.md CHANGED
@@ -6,10 +6,18 @@
6
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>
7
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>
8
8
 
9
- [Pyright](https://github.com/microsoft/pyright) extension for coc.nvim
9
+ [Pyright](https://github.com/microsoft/pyright) extension for coc.nvim, with additional features:
10
+
11
+ - codeActions to add imports, ignore typing check, run tests and more
12
+ - linting with `bandit`, `flake8`, `mypy`, `prospector`, `pycodestyle`, `pydocstyle`, `pylama`, `pylint`, `bandit`, `pytype`
13
+ - formatting with `yapf`, `black`, `autopep8`, `darker`, `blackd`
14
+ - testing with `unittest` or `pytest`, supports codeLens
15
+ - sort imports with `isort` or `pyright`
16
+ - extract method and variables with `rope`
17
+ - inlayHints supports
10
18
 
11
19
  <!-- markdownlint-disable-next-line -->
12
- <img width="603" alt="1" src="https://user-images.githubusercontent.com/345274/64470245-bda9a780-d172-11e9-9fda-48af0617a2ee.png">
20
+ <img width="906" alt="10" src="https://user-images.githubusercontent.com/345274/189342412-c80fc8a9-c3d7-4a8b-bbfc-75e5cbddb9a7.png">
13
21
 
14
22
  ## Install
15
23
 
@@ -21,10 +29,12 @@ Note: Pyright may not work as expected if can't detect _project root_ correctly,
21
29
 
22
30
  - `python.runLinting`: Run linting
23
31
  - `python.sortImports`: Sort imports by `isort`
24
- - `pyright.version`: Show the currently used Pyright version in `:messages`
32
+ - `pyright.version`: Show the currently used Pyright version
25
33
  - `pyright.organizeimports`: Organize imports by Pyright
26
34
  - `pyright.restartserver`: This command forces the type checker to discard all of its cached type information and restart analysis. It is useful in cases where new type stubs or libraries have been installed.
27
35
  - `pyright.createtypestub`: Creates Type Stubs with given module name, for example `:CocCommand pyright.createtypestub numpy`
36
+ - `pyright.fileTest`: Run test for current test file
37
+ - `pyright.singleTest`: Run test for single nearest test
28
38
 
29
39
  ## Configurations
30
40