Rudy’s OBTF Rudolf Adamkovič

Home / Python / Python / Installation


Formatting

https://pypi.org/project/black/

source ~/.venv/bin/activate
pip install python-lsp-black # black
(with-eval-after-load 'package
  (add-to-list 'package-selected-packages 'blacken))
(with-eval-after-load 'blacken
  (setopt blacken-executable "~/.venv/bin/black"
          blacken-line-length 'fill))
;; (add-hook 'python-mode-hook #'blacken-mode)

© 2025 Rudolf Adamkovič under GNU General Public License (GPL) version 3 or later.
Made with Emacs and secret alien technologies of yesteryear.