diff options
author | John Turner <jturner.usa@gmail.com> | 2024-03-10 15:24:21 -0400 |
---|---|---|
committer | John Turner <jturner.usa@gmail.com> | 2024-03-10 15:24:21 -0400 |
commit | d1e1953e5f73c620e1e041d1846b1af5d652f50c (patch) | |
tree | 90b8f965f162662c908da430ab6b5aac29545551 /dir-locals/python-dir-locals.el | |
parent | 3d78eb9faab52491c473af3d4a135ccd5edc412d (diff) | |
download | emacs.d-d1e1953e5f73c620e1e041d1846b1af5d652f50c.tar.gz |
new python dir-locals
Diffstat (limited to 'dir-locals/python-dir-locals.el')
-rw-r--r-- | dir-locals/python-dir-locals.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dir-locals/python-dir-locals.el b/dir-locals/python-dir-locals.el new file mode 100644 index 0000000..8bd8ac1 --- /dev/null +++ b/dir-locals/python-dir-locals.el @@ -0,0 +1,6 @@ +((python-ts-mode . ((eval . (flycheck-mode 1)) + (eval . (flycheck-select-checker 'python-mypy)) + (eval . (flycheck-add-next-checker 'python-mypy (cons t 'python-flake8))) + (eval . (add-hook 'before-save-hook 'fmt-current-buffer nil t)) + (eval . (setq-local fmt-executable "black" + fmt-args '("-")))))) |