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 Community topics Top

Tommy
So I have enough money to last a year. Realistically I’m still going to have to work part time painting. I’m so done with it though! I h...
New
mafinar
I am going to dump my thoughts, methods, codes, experiences and rants while learning OCaml into this thread. This is probably the 5th or...
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
TwistingTwists
This is my Journal for readings on Designing Elixir Systems with OTP. Will post chapter 01 tomorrow! Stay tuned!
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
AstonJ
With Tailwind now the default CSS framework shipped with Phoenix we thought it would be nice to run this book club on the Elixir Forum. ...
New
AstonJ
With AI set to play a big role in our industry Elixir users are lucky to have Nx, so we’re running our Nx related book club on Genetic Al...
New
PragmaticBookshelf
When the pandemic, heart disease, and personal tragedy threatened to steal everything the Tates spent years building, they found hope, he...
New

Other popular topics Top

AstonJ
If it’s a mechanical keyboard, which switches do you have? Would you recommend it? Why? What will your next keyboard be? Pics always w...
New
Exadra37
I am thinking in building or buy a desktop computer for programing, both professionally and on my free time, and my choice of OS is Linux...
New
New
AstonJ
Thanks to @foxtrottwist’s and @Tomas’s posts in this thread: Poll: Which code editor do you use? I bought Onivim! :nerd_face: https://on...
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
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
First poster: bot
Large Language Models like ChatGPT say The Darnedest Things. The Errors They MakeWhy We Need to Document Them, and What We Have Decided ...
New
PragmaticBookshelf
Author Spotlight: Sophie DeBenedetto @SophieDeBenedetto The days of the traditional request-response web application are long gone, b...
New
PragmaticBookshelf
A Ruby-Centric Chat with Noel Rappin @noelrappin Once you start noodling around with Ruby you quickly figure out, as Noel Rappi...
New
AstonJ
This is cool! DEEPSEEK-V3 ON M4 MAC: BLAZING FAST INFERENCE ON APPLE SILICON We just witnessed something incredible: the largest open-s...
New