浏览代码

Fix black-check

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

+ 16
- 16
emacs.el 查看文件

@@ -2075,24 +2075,24 @@ initializing."
(save-match-data
(goto-char (point-min))
(when (re-search-forward "^would reformat .*$" nil t)
(setq result (list (flycheck-error-new-at
(point-min)
nil
'error
;;(format "Black: %s" (match-string 0))
"Black: would be reformatted"
:buffer buffer
:checker checker))))
(add-to-list 'result (flycheck-error-new-at
(point-min)
nil
'error
;;(format "Black: %s" (match-string 0))
"Black: would reformat"
:buffer buffer
:checker checker)))
(goto-char (point-min))
(when (re-search-forward "^error: .*$" nil t)
(setq result (list (flycheck-error-new-at
(point-min)
nil
'error
;; Fix not to include absolute file path
(format "Black: %s" (match-string 0))
:buffer buffer
:checker checker))))))
(add-to-list 'result (flycheck-error-new-at
(point-min)
nil
'error
;; Fix not to include absolute file path
(format "Black: %s" (match-string 0))
:buffer buffer
:checker checker)))))
result))

(defun my-flycheck-parse-unified-diff (output checker buffer)


正在加载...
取消
保存