disable python module docstring linting
This commit is contained in:
parent
1387e6de40
commit
79a651d7f7
1 changed files with 16 additions and 10 deletions
|
@ -1,9 +1,16 @@
|
||||||
require('lint').linters_by_ft = {
|
require('lint').linters_by_ft = {
|
||||||
python = {'flake8', 'pylint', 'pycodestyle', 'pydocstyle',},
|
python = { 'flake8', 'pylint', 'pycodestyle', },
|
||||||
php = { 'phpcs' },
|
php = { 'phpcs' },
|
||||||
markdown = { 'markdownlint' }
|
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" }, {
|
vim.api.nvim_create_autocmd({ "BufWritePost" }, {
|
||||||
callback = function()
|
callback = function()
|
||||||
require("lint").try_lint()
|
require("lint").try_lint()
|
||||||
|
@ -15,4 +22,3 @@ vim.api.nvim_create_autocmd({ "BufEnter" }, {
|
||||||
require("lint").try_lint()
|
require("lint").try_lint()
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue