disable python module docstring linting

This commit is contained in:
Szwendacz99 2022-11-02 11:53:05 +01:00
parent 1387e6de40
commit 79a651d7f7

View file

@ -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,
})