summaryrefslogtreecommitdiff
path: root/.dir-locals.el
diff options
context:
space:
mode:
Diffstat (limited to '.dir-locals.el')
-rw-r--r--.dir-locals.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/.dir-locals.el b/.dir-locals.el
new file mode 100644
index 0000000..8bd8ac1
--- /dev/null
+++ b/.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 '("-"))))))