emacs
This is an old revision of the document!
Table of Contents
Emacs
Useful Emacs stuff, with no particular order
.dir-locals.el for Python
This `.dir-locals.el` assumes you are running:
pylsp-mypy>=0.7.0
python-lsp-ruff>=2.2.2
python-lsp-server>=1.12.2
Since lsp-pylsp-plugins-mypy-enabled
comes disabled by default, this setting should enable it.
((python-mode . ((eval . (setq-local lsp-pylsp-plugins-mypy-enabled t)))))
Tests in docker
If unit tests run only in docker, you can use:
(python-pytest-executable . "docker-compose run --rm -e CI=True your-container-name python -m pytest")
emacs.1741270431.txt.gz · Last modified: 2025/03/06 14:13 by roger