From d1e1953e5f73c620e1e041d1846b1af5d652f50c Mon Sep 17 00:00:00 2001 From: John Turner Date: Sun, 10 Mar 2024 15:24:21 -0400 Subject: [PATCH] new python dir-locals --- dir-locals/python-dir-locals.el | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 dir-locals/python-dir-locals.el 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 '("-")))))) -- 2.39.5