File tree Expand file tree Collapse file tree 2 files changed +24
-7
lines changed Expand file tree Collapse file tree 2 files changed +24
-7
lines changed Original file line number Diff line number Diff line change 1
- # pyls-black
1
+ # python-lsp-black
2
+
3
+ [ ![ PyPI] ( https://img.shields.io/pypi/v/pyls-black.svg )] ( https://pypi.org/project/python-lsp-black ) [ ![ Code style: black] ( https://img.shields.io/badge/code%20style-black-000000.svg )] ( https://github.com/ambv/black )
4
+ [ ![ Python] ( https://github.com/python-lsp/python-lsp-black/actions/workflows/python.yml/badge.svg )] ( https://github.com/python-lsp/python-lsp-black/actions/workflows/python.yml )
2
5
3
- [ ![ PyPI] ( https://img.shields.io/pypi/v/pyls-black.svg )] ( https://pypi.org/project/pyls-black/ ) [ ![ Code style: black] ( https://img.shields.io/badge/code%20style-black-000000.svg )] ( https://github.com/ambv/black )
4
6
5
7
> [ Black] ( https://github.com/ambv/black ) plugin for the [ Python LSP Server] ( https://github.com/python-lsp/python-lsp-server ) .
6
8
7
9
In the same ` virtualenv ` as ` python-lsp-server ` :
8
10
9
11
``` shell
10
- pip3 install pyls -black
12
+ pip install python-lsp -black
11
13
```
12
14
13
15
To avoid unexpected results you should make sure ` yapf ` and ` autopep8 ` are not installed.
14
16
15
- * ` pyls -black` can either format an entire file or just the selected text.
17
+ * ` python-lsp -black` can either format an entire file or just the selected text.
16
18
* The code will only be formatted if it is syntactically valid Python.
17
19
* Text selections are treated as if they were a separate Python file.
18
20
Unfortunately this means you can't format an indented block of code.
19
- * ` pyls-black ` will use your project's [ pyproject.toml] ( https://github.com/ambv/black#pyprojecttoml ) if it has one.
20
-
21
- See the [ wiki] ( https://github.com/rupert/pyls-black/wiki ) for instructions on how to use ` pyls-black ` with popular text editors.
21
+ * ` python-lsp-black ` will use your project's [ pyproject.toml] ( https://github.com/ambv/black#pyprojecttoml ) if it has one.
Original file line number Diff line number Diff line change
1
+ To release a new version of python-lsp-black:
2
+ 1 . git fetch upstream && git checkout upstream/master
3
+ 2 . Close milestone on GitHub
4
+ 3 . git clean -xfdi
5
+ 4 . Update CHANGELOG.md with loghub
6
+ 5 . git add -A && git commit -m "Update Changelog"
7
+ 6 . Update release version in `` setup.cfg `` (set release version, remove 'dev0')
8
+ 7 . git add -A && git commit -m "Release vX.X.X"
9
+ 8 . python setup.py sdist
10
+ 9 . python setup.py bdist_wheel
11
+ 10 . twine check
12
+ 11 . twine upload
13
+ 12 . git tag -a vX.X.X -m "Release vX.X.X"
14
+ 13 . Update development version in `` setup.cfg `` (add '.dev0' and increment minor)
15
+ 14 . git add -A && git commit -m "Back to work"
16
+ 15 . git push upstream master
17
+ 16 . git push upstream --tags
You can’t perform that action at this time.
0 commit comments