summary refs log tree commit diff
path: root/emacs.d/lisp/fcuny-flycheck-py.el
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--emacs.d/lisp/fcuny-flycheck-py.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/emacs.d/lisp/fcuny-flycheck-py.el b/emacs.d/lisp/fcuny-flycheck-py.el
new file mode 100644
index 0000000..68a5143
--- /dev/null
+++ b/emacs.d/lisp/fcuny-flycheck-py.el
@@ -0,0 +1,6 @@
+(defun fcuny/check-source-predicate-python-p ()
+  (and (executable-find "check.pex")
+       (buffer-file-name)
+       (string-match "src/source/.*\.py$" (buffer-file-name))))
+
+(provide 'fcuny-flycheck-py)