disable python module docstring linting
This commit is contained in:
parent
1387e6de40
commit
79a651d7f7
1 changed files with 16 additions and 10 deletions
|
@ -1,18 +1,24 @@
|
|||
require('lint').linters_by_ft = {
|
||||
python = {'flake8', 'pylint', 'pycodestyle', 'pydocstyle',},
|
||||
php = {'phpcs'},
|
||||
markdown = {'markdownlint'}
|
||||
python = { 'flake8', 'pylint', 'pycodestyle', },
|
||||
php = { 'phpcs' },
|
||||
markdown = { 'markdownlint' }
|
||||
}
|
||||
|
||||
local pylint = require('lint.linters.pylint')
|
||||
pylint.args = {
|
||||
'-f',
|
||||
'json',
|
||||
'--disable=C0114', -- disable missing module docstring info
|
||||
}
|
||||
|
||||
vim.api.nvim_create_autocmd({ "BufWritePost" }, {
|
||||
callback = function()
|
||||
require("lint").try_lint()
|
||||
end,
|
||||
callback = function()
|
||||
require("lint").try_lint()
|
||||
end,
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd({ "BufEnter" }, {
|
||||
callback = function()
|
||||
require("lint").try_lint()
|
||||
end,
|
||||
callback = function()
|
||||
require("lint").try_lint()
|
||||
end,
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue