Comment out old FB python stuff
This commit is contained in:
parent
b3572ac6ad
commit
df8ad0576b
1 changed files with 16 additions and 16 deletions
|
|
@ -690,22 +690,22 @@ Or, uh, Objective C, I guess."
|
||||||
(append flycheck-disabled-checkers
|
(append flycheck-disabled-checkers
|
||||||
'(json-jsonlist)))
|
'(json-jsonlist)))
|
||||||
|
|
||||||
(flycheck-define-checker python-fb-flake8
|
;; (flycheck-define-checker python-fb-flake8
|
||||||
"A Python syntax and style checker using FB's Flake8."
|
;; "A Python syntax and style checker using FB's Flake8."
|
||||||
:command ("flake8" source-original "--shebang" "--py2" "--py3")
|
;; :command ("flake8" source-original "--shebang" "--py2" "--py3")
|
||||||
:standard-input nil
|
;; :standard-input nil
|
||||||
:error-filter (lambda (errors)
|
;; :error-filter (lambda (errors)
|
||||||
(let ((errors (flycheck-sanitize-errors errors)))
|
;; (let ((errors (flycheck-sanitize-errors errors)))
|
||||||
(seq-do #'flycheck-flake8-fix-error-level errors)
|
;; (seq-do #'flycheck-flake8-fix-error-level errors)
|
||||||
errors))
|
;; errors))
|
||||||
:error-patterns
|
;; :error-patterns
|
||||||
((warning line-start
|
;; ((warning line-start
|
||||||
(file-name) ":" line ":" (optional column ":") " "
|
;; (file-name) ":" line ":" (optional column ":") " "
|
||||||
(id (one-or-more (any alpha)) (one-or-more digit)) " "
|
;; (id (one-or-more (any alpha)) (one-or-more digit)) " "
|
||||||
(message (one-or-more not-newline))
|
;; (message (one-or-more not-newline))
|
||||||
line-end))
|
;; line-end))
|
||||||
:modes python-mode)
|
;; :modes python-mode)
|
||||||
(add-to-list 'flycheck-checkers 'python-fb-flake8)
|
;; (add-to-list 'flycheck-checkers 'python-fb-flake8)
|
||||||
|
|
||||||
(global-flycheck-mode)
|
(global-flycheck-mode)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue