Reloading Flycheck After Loading Virtualenv

When I open Emacs to edit a Python project, the first command I run is pyvenv-activate to activate the virtualenv. If I have a Python file open of that project before running pyvenv-activate, flycheck won’t work because I install my development dependencies (which are needed by the checkers) in the local virtualenv. Luckily pyvenv provides a hook that runs whenever a virtualenv was activated. (defun clear-flycheck-auto-disabled-checkers () "Clears any automatically disabled flycheck checkers....

January 11, 2022 · 1 min · Josef Erben

Schablone - A Lightweight Alternative to cookiecutter-django

I am happy to announce Schablone. Schablone is a minimal boilerplate project for Django with strong opinions and little options for customization. ...

December 14, 2021 · 1 min · Josef Erben

Switching from elpy to anaconda-mode

I am using Emacs with elpy as my Python IDE. Minor issues that appeared lately made me explore other options for developing Python in Emacs. I ended up switching to a custom configuration based on anaconda-mode. ...

December 8, 2021 · 3 min · Josef Erben