summary refs log tree commit diff
path: root/emacs/lisp/fcuny-flycheck-py.el
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2021-01-04 19:52:04 -0800
committerFranck Cuny <franck@fcuny.net>2021-01-04 19:52:04 -0800
commit88ab401adc83bea6e1f571c54093dbc7f521e080 (patch)
treee2ae9336119ee36707b0e76a6592f4fc8503a4ef /emacs/lisp/fcuny-flycheck-py.el
parentgit: store configuration under XDG_CONFIG_HOME (diff)
downloademacs.d-88ab401adc83bea6e1f571c54093dbc7f521e080.tar.gz
emacs: rename the directory
Diffstat (limited to 'emacs/lisp/fcuny-flycheck-py.el')
-rw-r--r--emacs/lisp/fcuny-flycheck-py.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/emacs/lisp/fcuny-flycheck-py.el b/emacs/lisp/fcuny-flycheck-py.el
new file mode 100644
index 0000000..68a5143
--- /dev/null
+++ b/emacs/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)