浏览代码

Fix flake8 erorrs

master
10sr 5 年前
父节点
当前提交
9bcbeb5bb3
签署人:: 10sr GPG 密钥 ID: C384BB17CBB19347
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. +11
    -0
      emacs.el

+ 11
- 0
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



正在加载...
取消
保存