Commit graph

291 commits

Author SHA1 Message Date
Julien Debon
e817e0faae
[Python layer] Add links to the LSP implementations (#14562)
* [Python layer] Document Nix + Microsoft LSP

* Document how to make Nix + Microsoft LSP work
* Add links to Microsoft LSP and Pyright repos

* Remove nix part
2021-04-08 22:10:33 +02:00
Lucius Hu
f7c2ce8fb6 fixup! python: refactor 2021-04-04 21:23:01 +02:00
Lucius Hu
26eb3df294 python: refactor
- Moved backend determination to `config.el`
- Replaced unnecessary backquote construct with simple quotation
- Replaced `pcase` form with only one-arm with `when` or `unless` form
- Replaccd `(cond ((eq foo) bar))` form with `(pcase (foo bar))`
2021-04-04 12:48:21 +02:00
syl20bnr
97cd83e169 Apply GPLv3 terms explicitly to all elisp files 2021-03-25 22:59:32 -04:00
syl20bnr
d55a9e2e67 Update header for year 2021 2021-03-25 22:59:32 -04:00
Maximilian Wolff
6d40ee8e10 Revert "python: replaced local package pylookup with the one on github"
This reverts commit 6e0f650101.
The reason for this is not that the dynamically build pylookup.py
is not found by emacs, this I have already solved locally by checking
the quelpa build directory.

However the issue is that the library is not compatible with python 3
the local version however is.

So this is effectively a fork and must be kept till python 3
compatibility for pylookup has been achieved.

Should fix #14544
2021-03-21 09:53:13 +00:00
Maximilian Wolff
a9d5c5ed25
[python] Fix invalid recipe declaration for nose.el 2021-03-20 00:24:59 +01:00
Lucius Hu
fb16fa95cb
python: replaced local package nose with syl20bnr/nose.el 2021-03-20 00:24:28 +01:00
Maximilian Wolff
e0a94825fe
[python] Fix broken fetcher declaration for pylookup 2021-03-20 00:11:38 +01:00
Lucius Hu
6e0f650101 python: replaced local package pylookup with the one on github 2021-03-19 23:54:13 +01:00
Maximilian Wolff
6018580958 Make layers activate/deactivate the right version of smartparens
Before layers were sometimes only activating the non strict
version of smartparens. Also some were only disabling
the non-strict version leaving some of the smartparens
advices intact.

With this PR, all layers set the right version of smartparens.
Also if the layer is trying to disable it a standard function
will now take care to disable all versions of smartparens.
2021-03-16 17:47:15 +00:00
Corentin
4409d39bec Fixes error if parsing ipython dev version 2021-03-13 23:40:53 +01:00
duianto
9375d6f54d Add missing space before defun args parens 2021-02-10 08:51:55 +01:00
Maximilian Wolff
7b7076d4ba [python] Define purposes for specialised buffers 2021-01-02 20:30:45 +00:00
emacspace
d545dcbdbe documentation formatting: Wed Dec 30 21:04:48 UTC 2020 2020-12-30 23:41:14 +01:00
Maximilian Wolff
08355b0b6f
[python] Fix one small issue in latest doc additions 2020-12-30 21:55:27 +01:00
Peter Kuchar
638bbb0c38
[+lang/python] Poetry integration for python layer
Adding Poetry integration (tool for managing virtual environments in Python)
2020-12-30 21:53:27 +01:00
Martin Račák
9c31d4f953 Hide sphinx-doc-mode lighter 2020-10-22 22:53:05 +02:00
JAremko
8227686194 Fix links 2020-10-03 21:52:09 +03:00
Stefan Ruschke
00b1f419a5 [python] Add sphinx-doc support 2020-10-01 13:23:47 +02:00
Maximilian Wolff
a55d6287b1
[python] Fix small unintentional change from copyright date update 2020-09-23 21:26:07 +02:00
Robert O'Connor
82ba73a1c0
update copyright to 2020 2020-09-23 21:25:01 +02:00
sunlin
8d204c78b4
Add `spacemacs/python-shell-send-statement' for sending statement (#13945) 2020-09-18 21:15:53 +02:00
emacspace
58d2a69a07 documentation formatting: Mon Sep 14 18:13:15 UTC 2020 2020-09-15 10:48:00 +03:00
Daniel Nicolai
1147e758bd Implement pyvenv-tracking-mode
The pyvenv-tracking-mode changes the virtual environment on changing focus
between buffers.
2020-09-14 18:53:19 +02:00
beyondpie
8da6653d2b
[Python] Add python-shell-send-line function (#13942) 2020-09-14 18:32:23 +02:00
emacspace
050a6d1973 documentation formatting: Fri Sep 4 16:48:12 UTC 2020 2020-09-04 22:33:54 +02:00
Ayush Goyal
96cc779cbe Support pyright language server for python layer
Microsoft has released pyright language server for python. It boasts better
performance than the old Microsoft language server for python. This commit adds
supports for pyright language server in python layer
2020-09-04 18:25:21 +02:00
duianto
04b80d610a [python][doc] Fix emphasis
README.org
Buffer formatting, first paragraph
The apostrophes before: yapf and black
caused the org emphasis verbatim equal signs to be visible.

config.el
python-formatter variable docstring
An apostrophe instead of a backtick, before the possible value: lsp
caused it to be shown with the default docstring color.
2020-07-29 08:37:42 +02:00
Jaakko Luttinen
3834bb1151 [python] Support --last-failed for pytest. Fixes #12023 2020-07-28 14:19:44 +02:00
Francisco Rodera
5396a36e18 [doc] Update list of suggested packages to install with python-language-server
Removed suggestion to manually install Python packages that are already
dependencies of python-language-server [1].

[1] 6a7eae7600/setup.py (L50-L58)
2020-05-18 23:26:58 +02:00
Maximilian Wolff
1fd90fc1dc
Update instructions for dap integration and update existing layers
The previous way of adding dap to a layer did add the mode
unconditionally to `spacemacs--dap-supported-modes` causing
dap bindings to be added also when no lsp backend was used.
2020-05-16 23:40:38 +02:00
Hans Jang
39f774f70b
[Python] Reflect upstream pytest update to python-test-last
This is a squash commit, it contains:
* Reflect upstream pytest update to python-test-last
* Update CHANGELOG.develop
2020-04-16 23:37:25 +02:00
Ivan Yonchovski
c3f13d0391 Removed company-lsp in favour of company-capf
- Also removed some cquery artifacts which accidentally ended up in this PR
instead of in https://github.com/syl20bnr/spacemacs/pull/13446
2020-04-04 08:24:44 +02:00
Maximilian Wolff
5e4b9b8c9b
[python] Add additional dependencies for pyls 2020-03-12 22:09:42 +01:00
Jee L
36ad2b28d2
[Python][LSP] Change mspyls publish directory according to system type 2020-02-10 19:45:46 +00:00
Maximilian Wolff
23056c9882
Revert "Revise python layer"
Removing the getter function for python-backend had
unintended side effects. This should restore the old
behaviour.
2020-01-23 23:15:28 +01:00
Maximilian Wolff
6e1c8e6092
Remove obsolete requirement for lsp layer from python layer 2019-12-15 14:56:46 +01:00
Maximilian Wolff
9720127282
Revise python layer
Make LSP be used as default backend
Request DAP layer when LSP is used as backend
Update README.org with latest pyls package dependencies
Remove obsolete getter functions
2019-12-15 14:29:33 +01:00
lin.sun
7f6b4205cb
Automatically choose the `lsp' as python-formatter backend when lsp-layer is enabled. 2019-12-15 14:29:33 +01:00
kimr
da80634370
converted cl to cl-lib 2019-12-14 20:20:51 +00:00
James Gough
e6997638e7
Set VIRTUAL_ENV environment variable when switching to new pyenv
This environment variable is used by python LSP to determine
the pyenv virtual environment to use. When switching to a different
project using projectile 'switch-to-project', it should only be
necessary to restart the LSP server but a restart will only
work if this VIRTUAL_ENV changes value too.
2019-12-03 20:37:43 +00:00
emacspace
fd9b8c71d7
documentation formatting: Sat Nov 23 21:43:58 UTC 2019 2019-11-23 22:52:16 +01:00
chysi
fe028e9887
Update hy layer to new hy/python modes
Replace old "hy-shall-start-or-switch-to-shell" with "run-hy"
Expand pipenv to hy-mode
2019-11-23 21:20:16 +01:00
Nam Nguyen
729ad60b28 Support relative virtualenv path in .venv file for Python layer 2019-11-08 23:28:30 +01:00
emacspace
c91779aff4 documentation formatting: Fri Nov 8 16:03:53 UTC 2019 2019-11-08 16:08:22 +00:00
Boris Buliga
5785f1788f [python] update jedi instructions
Following 150390968b
2019-10-14 22:18:11 +02:00
Martin Račák
1fec4ec135 Fix conditional backend setup
* Use spacemacs//python-backend to check which backend is being used
* Set leader keys for anaconda in :config to avoid overwriting by tags layer
2019-10-12 15:21:40 +02:00
Martin Račák
c95534ace5 Revert "Use anaconda-mode-find-definition for SPC-m-g-g"
This reverts commit 9bafd3f561.
2019-10-12 15:21:40 +02:00
Rakan Alhneiti
9bafd3f561 Use anaconda-mode-find-definition for SPC-m-g-g 2019-10-11 22:03:59 +02:00