emacs-python-black
emacs-python-black copied to clipboard
Emacs package to reformat Python using black-macchiato
I installed python-black so I can use black-macchiato to reformat regions, because the project I'm working on does not use black. So I do not run black on save. Actually...
I'm using, as the readme says, ``` (use-package python-black :demand t :after python :hook (python-mode . python-black-on-save-mode-enable-dwim)) ``` Then I see that: ``` python-mode-hook is a variable defined in ‘python.el’....
I want to run black in the root dir of projectile project. I am trying to do this because right now, black will not pick up the `pyproject.toml` configurations.
pass the file name (if any) to black via the ‘--stdin-filename’ command line flag. it will be used to discover the project root directory and hence the configuration file (see...
If `org-src-preserve-indentation` is nil and `org-edit-src-content-indentation` is non-zero (both are by default), `python-black-org-mode-block` fails because of the indentation. For example, with `(setq-local org-src-preserve-indentation nil org-edit-src-content-indentation 2)`, this Org markup: ```...