From 9bcbeb5bb3d34f4c6ac2695f978c27db62450e2f Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Mon, 24 Jun 2019 23:17:09 +0900 Subject: [PATCH] Fix flake8 erorrs --- emacs.el | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/emacs.el b/emacs.el index a8d1a2e..523408d 100644 --- a/emacs.el +++ b/emacs.el @@ -1351,8 +1351,19 @@ found, otherwise returns nil." (executable-find e))) t))) +(defun my-update-flycheck-flake8-error-level-alist () + "Update `flycheck-flake8-error-level-alist'." + (defvar flycheck-flake8-error-level-alist) + ;; (add-to-list 'flycheck-flake8-error-level-alist + ;; '("^D.*$" . warning)) + (set-variable 'flycheck-flake8-error-level-alist + nil) + ) + (add-hook 'python-mode-hook 'my-set-venv-flycheck-executable-find) +(add-hook 'python-mode-hook + 'my-update-flycheck-flake8-error-level-alist) ;; Run multiple chekcers ;; https://github.com/flycheck/flycheck/issues/186