pydocstyle fixes

This commit is contained in:
Szwendacz99 2022-11-02 14:43:49 +01:00
parent d09b527e0f
commit 8c2da3c331

View file

@ -1,14 +1,14 @@
require('lint').linters_by_ft = { require('lint').linters_by_ft = {
python = { 'flake8', 'pylint', 'pycodestyle', 'pydocstyle'}, python = { 'flake8', 'pylint', 'pycodestyle', 'pydocstyle' },
php = { 'phpcs' }, php = { 'phpcs' },
markdown = { 'markdownlint' } markdown = { 'markdownlint' }
} }
local pydocstyle = require('lint.linters.pydocstyle') local pydocstyle = require('lint.linters.pydocstyle')
pydocstyle.args = { pydocstyle.args = {
'--ignore=D100', -- disable missing module docstring info '--ignore=D100,D203,D213', -- disable missing module docstring info
'--ignore=D203', -- disable one line before class docstring required -- disable one line before class docstring required
'--ignore=D213', -- disable multiline docstring summary -- disable multiline docstring summary
-- should start at the second line -- should start at the second line
} }
local pylint = require('lint.linters.pylint') local pylint = require('lint.linters.pylint')