File tree Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 4
4
hooks :
5
5
- id : isort
6
6
- repo : https://github.com/psf/black
7
- rev : 22.1 .0
7
+ rev : 22.3 .0
8
8
hooks :
9
9
- id : black
10
10
exclude : fixtures
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ pip install python-lsp-black
15
15
16
16
# Usage
17
17
18
- To avoid unexpected results you should make sure ` yapf ` and ` autopep8 ` are not installed.
18
+ This plugin will disable the yapf and autopep8 plugins if installed.
19
19
20
20
- ` python-lsp-black ` can either format an entire file or just the selected text.
21
21
- The code will only be formatted if it is syntactically valid Python.
Original file line number Diff line number Diff line change @@ -51,7 +51,9 @@ def pylsp_settings():
51
51
"line_length" : 88 ,
52
52
"preview" : False ,
53
53
"cache_config" : False ,
54
- }
54
+ },
55
+ "yapf" : {"enabled" : False },
56
+ "autopep8" : {"enabled" : False },
55
57
}
56
58
}
57
59
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ classifiers =
18
18
19
19
[options]
20
20
packages = find:
21
- install_requires = python-lsp-server>=1.4.0; black>=22.1 .0; toml
21
+ install_requires = python-lsp-server>=1.4.0; black>=22.3 .0; toml
22
22
python_requires = >= 3.7
23
23
24
24
[options.entry_points]
You can’t perform that action at this time.
0 commit comments