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.

7 1323 2

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

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...
21 1472 7
New
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...
18 1641 10
New
mafinar
Crystal recently reached version 1. I had been following it for awhile but never got to really learn it. Most languages I picked up out o...
155 4360 65
New
mafinar
Concurrent Data Processing in Elixir is now content complete and I finally found the time I’ve been looking for to dedicate behind readin...
70 2021 16
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...
45 1675 11
New
TwistingTwists
This is my Journal for readings on Designing Elixir Systems with OTP. Will post chapter 01 tomorrow! Stay tuned!
27 1423 7
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...
4 1232 0
New
rgerardi
Hello all. Creating this space here for general discussion and chat about Powerful Command-Line Applications In Go In particular, we ca...
21 2117 4
New
adamaiken89
Anyone is interested in a classical textbook for algorithms can go and check that.
9 889 3
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...
2 309 0
New

Other popular topics Top

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...
36 5432 10
New
brentjanderson
Bought the Moonlander mechanical keyboard. Cherry Brown MX switches. Arms and wrists have been hurting enough that it’s time I did someth...
212 15008 90
New
PragmaticBookshelf
Rust is an exciting new programming language combining the power of C with memory safety, fearless concurrency, and productivity boosters...
116 8174 31
New
PragmaticBookshelf
“A Mystical Experience” Hero’s Journey with Paolo Perrotta @nusco Ever wonder how authoring books compares to writing articles?...
31 3538 15
New
DevotionGeo
The V Programming Language Simple language for building maintainable programs V is already mentioned couple of times in the forum, but I...
21 11128 7
New
PragmaticBookshelf
Author Spotlight Mike Riley @mriley This month, we turn the spotlight on Mike Riley, author of Portable Python Projects. Mike’s book ...
62 6351 19
New
husaindevelop
Inside our android webview app, we are trying to paste the copied content from another app eg (notes) using navigator.clipboard.readtext ...
1 3243 0
New
PragmaticBookshelf
Author Spotlight: VM Brasseur @vmbrasseur We have a treat for you today! We turn the spotlight onto Open Source as we sit down with V...
16 4113 11
New
CommunityNews
Will Swifties’ war on AI fakes spark a deepfake porn reckoning?
0 5956 0
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...
14 1353 8
New