Skip to content

Conversation

@Muscaw
Copy link
Contributor

@Muscaw Muscaw commented Jan 10, 2021

Added some keybindings for Python major. (Fixes #149)
The Python major mode assume that the extension vscode-python is present.
The keybindings map the following features:

  • Format code (SPC m =)
  • Execute code (SPC m c)
  • Refactor code (SPC m r)
  • REPL (SPC m s)
  • Test (SPC m t)
  • Virtualenv (SPC m v)

Not all keybindings found on the spacemacs python keybindings page could be mapped to the VSCode Python extension.

I also took the liberty of using a free slot in the test section to rerun failed tests (SPC m t x).
If you feel like it does not have its place here, please let me know and I'll remove it.
The feature to re-run failed tests is present in the vscode-python extension the Python major mode assumes is there.

@stevenguh
Copy link
Member

Looks good. As far as the run failed tests, maybe we can bind it to SPC m t r with the name of Re-run failed tests? (This is like SPC m t r -- re-run test failures for namespace from spacemacs' Clojure layer.

@Muscaw
Copy link
Contributor Author

Muscaw commented Jan 12, 2021

Looks good. As far as the run failed tests, maybe we can bind it to SPC m t r with the name of Re-run failed tests? (This is like SPC m t r -- re-run test failures for namespace from spacemacs' Clojure layer.

I like it. I'll modify accordingly.

@marcoieni
Copy link
Member

Thank you Muscaw! This is great 😁

@stevenguh stevenguh mentioned this pull request Jan 12, 2021
2 tasks
@Muscaw
Copy link
Contributor Author

Muscaw commented Jan 14, 2021

I addressed the different comments, feel free to let me know if you see something else to change.

@marcoieni marcoieni merged commit af82aec into VSpaceCode:master Jan 14, 2021
@marcoieni
Copy link
Member

Thanks again Muscaw! 🚀

@Muscaw
Copy link
Contributor Author

Muscaw commented Jan 14, 2021

Thanks to you as well @marcoieni @stevenguh for the incredible work :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Python major mode

3 participants