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 …

Where Next?

Popular Community topics Top

Rainer
My first contact with Erlang was about 2 years ago when I used RabbitMQ, which is written in Erlang, for my job. This made me curious and...
New
finner
As one of my New Year resolutions is to read more tech I’ve decided on an attempt to document my travels in Mannings Modern Java in Actio...
New
rustkas
To be a more productive reader when rereading a book, it is very convenient to create small rebar3 projects based on books’ samples and i...
New
Maartz
The very first time I’ve seen a line of Elixir I was in awe. Coming from Ruby the syntax was familiar. But I wanted to know what was thi...
New
mafinar
TL;DR I am reading “Domain Modeling Made Functional” and discussing and keeping a journal of what I learned from it, any co-readers welco...
New
RomanTurner
Agile Web Development with Rails 6 Chapter 11. Task F Currently reading and working through AWDR6 by Sam Ruby, David Bryant Copeland, a...
New
ggarnier
In Aborting Multiple Fetch Requests with One Signal section, the code in abort/abort_ex09.js doesn’t show the downloaded images until Pro...
New
adamaiken89
Anyone is interested in a classical textbook for algorithms can go and check that.
New
AstonJ
With Phoenix and LiveView having recently had a fairly major release, and Programming Phoenix LiveView being updated too, we thought it w...
New
TomMahon
How did a sleepy valley become the epicenter of the technological world as we know it? In the 40th Anniversary Edition of my book, “Charg...
New

Other popular topics Top

AstonJ
Or looking forward to? :nerd_face:
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
PragmaticBookshelf
Build highly interactive applications without ever leaving Elixir, the way the experts do. Let LiveView take care of performance, scalabi...
New
AstonJ
Seems like a lot of people caught it - just wondered whether any of you did? As far as I know I didn’t, but it wouldn’t surprise me if I...
New
Maartz
Hi folks, I don’t know if I saw this here but, here’s a new programming language, called Roc Reminds me a bit of Elm and thus Haskell. ...
New
mafinar
This is going to be a long an frequently posted thread. While talking to a friend of mine who has taken data structure and algorithm cou...
New
PragmaticBookshelf
Author Spotlight James Stanier @jstanier James Stanier, author of Effective Remote Work , discusses how to rethink the office as we e...
New
New
sir.laksmana_wenk
I’m able to do the “artistic” part of game-development; character designing/modeling, music, environment modeling, etc. However, I don’t...
New
AstonJ
Curious what kind of results others are getting, I think actually prefer the 7B model to the 32B model, not only is it faster but the qua...
New