User Tools

Site Tools


emacs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
emacs [2025/03/06 14:05] – created rogeremacs [2025/03/06 14:15] (current) roger
Line 1: Line 1:
 ====== Emacs ====== ====== Emacs ======
  
 +Useful Emacs stuff, with no particular order
 +
 +===== .dir-locals.el =====
 +
 +==== 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.
 +
 +<code lisp>
 +((python-mode . ((eval . (setq-local lsp-pylsp-plugins-mypy-enabled t)))))
 +</code>
 +
 +=== Tests in Docker ===
 +
 +If unit tests run only in docker, you can use:
 +
 +<code lisp>
 +(python-pytest-executable . "docker-compose run --rm -e CI=True your-container-name python -m pytest")
 +</code>
emacs.1741269900.txt.gz · Last modified: 2025/03/06 14:05 by roger