RobertKielty

RobertKielty

Journal: Intuitive Python - The spacemacs setup

My overall initial first impressions of this book are very good.

I will document my local spacemacs setup to as I work through the book.

Most Liked

AstonJ

AstonJ

Nice one Robert - I’ll look forward to seeing how you get on :+1:

RobertKielty

RobertKielty

Spacemacs notes wrt Python dev

From the develop branch of spacemacs we have the Python Layer.

A layer in Spacemacss configuration block that pulls in a set of emacs packages and allows you to configure those packages.

The Python layer brings in a lot of features many of which intersect with the tooling described in the book.

backend

I have set the backend to lsp as I have that already installed, but the layer by default uses anaconda and I wonder if that is because it is tested better there.

Well yes there is a note that lsp is slated to be replaced with a new language server for python called pyright. So I’ll try that to see if it “reduces cpu cooler fan noise”

Installed it using

npm install -g pyright

SPC h d python python backend
TAB to config.el and edit python-lsp-server there using instructions in the var descriptions

Static code checkers

Spoiled for choice, notes for each

In spacemacs SPC e is the chord that brings up options for flycheck mode which presents errors reported by static code checkers.

Ideally I would like to run all the checks all the time - i.e. I would like to chain static code checkers

SPC e s allows you to select a static checker
entering python filters the available checkers

To see the errors found as a list SPC e l

flake8

I installed this on the local machine as per Python layer

I set the checker using SPC e s then selecting python-flake8

mypy

TODO Chain mypy on to list of flycheck / lsp static code checkers

Need to move on to other tasks will revisit this …

Popular General Dev topics Top

AstonJ
The obligatory speed test thread :smiley: Check here: https://www.speedtest.net When complete, click on the share link and copy and pas...
New
Dusty
Thanks to @AstonJ for encouraging me to post this here: An introduction to alternative keyboard layouts Feel free to post your own expe...
New
AstonJ
Which apps do you think are killing it right now? Either from a technical perspective or ones that you like personally or feel have been...
New
Exadra37
Please tell us what is your preferred monitor setup for programming(not gaming) and why you have chosen it. Does your monitor have eye p...
New
AstonJ
Please share your favourite Vim tips here :nerd_face:
New
New
Exadra37
I am thinking in buying one as the second monitor for my Thinkpad while I am travelling: Anyone has experience in using on...
New
First poster: OvermindDL1
Using Zig to Build Native Lua Scripts. Using Zig to Cross compile a Lua script for multiple arches
New
AstonJ
This was interesting: He’s definitely more of an Emacs fan (which is fine) and the thing I found interesting is how you wo...
New
DevotionGeo
I have always used antique keyboards like Cherry MX 1800 or Cherry MX 8100 and almost always have modified the switches in some way, like...
New

Other popular topics Top

malloryerik
Any thoughts on Svelte? Svelte is a radical new approach to building user interfaces. Whereas traditional frameworks like React and Vue...
New
AstonJ
Or looking forward to? :nerd_face:
New
siddhant3030
I’m thinking of buying a monitor that I can rotate to use as a vertical monitor? Also, I want to know if someone is using it for program...
New
DevotionGeo
I know that -t flag is used along with -i flag for getting an interactive shell. But I cannot digest what the man page for docker run com...
New
AstonJ
We have a thread about the keyboards we have, but what about nice keyboards we come across that we want? If you have seen any that look n...
New
AstonJ
Inspired by this post from @Carter, which languages, frameworks or other tech or tools do you think is killing it right now? :upside_down...
New
AstonJ
I have seen the keycaps I want - they are due for a group-buy this week but won’t be delivered until October next year!!! :rofl: The Ser...
New
AstonJ
If you are experiencing Rails console using 100% CPU on your dev machine, then updating your development and test gems might fix the issu...
New
PragmaticBookshelf
“A Mystical Experience” Hero’s Journey with Paolo Perrotta @nusco Ever wonder how authoring books compares to writing articles?...
New
PragmaticBookshelf
Author Spotlight Rebecca Skinner @RebeccaSkinner Welcome to our latest author spotlight, where we sit down with Rebecca Skinner, auth...
New