Mercurial > dotfiles
comparison dot_config/nvim/lua/efm/python.lua @ 395:3f2b7b399dee
Disable slow flake8 for now
author | zegervdv <zegervdv@me.com> |
---|---|
date | Mon, 14 Jun 2021 18:38:01 +0200 |
parents | 3b7ebcd563e1 |
children |
comparison
equal
deleted
inserted
replaced
394:a80312c2755b | 395:3f2b7b399dee |
---|---|
4 | 4 |
5 if (vim.fn.executable('black') == 1) then | 5 if (vim.fn.executable('black') == 1) then |
6 table.insert(languages.python, { formatCommand = 'black -', formatStdin = true }) | 6 table.insert(languages.python, { formatCommand = 'black -', formatStdin = true }) |
7 end | 7 end |
8 | 8 |
9 if (vim.fn.executable('flake8') == 1) then | 9 -- if (vim.fn.executable('flake8') == 1) then |
10 table.insert(languages.python, { | 10 -- table.insert(languages.python, { |
11 lintCommand = 'flake8 --stdin-display-name ${INPUT} -', | 11 -- lintCommand = 'flake8 --stdin-display-name ${INPUT} -', |
12 lintStdin = true, | 12 -- lintStdin = true, |
13 lintIgnoreExitCode = true, | 13 -- lintIgnoreExitCode = true, |
14 lintFormats = { '%f:%l:%c: %m' }, | 14 -- lintFormats = { '%f:%l:%c: %m' }, |
15 }) | 15 -- }) |
16 end | 16 -- end |
17 | 17 |