ソースを参照

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)


読み込み中…
キャンセル
保存