From 79a651d7f75264fd2d6440582d61c61fe94489fb Mon Sep 17 00:00:00 2001 From: Szwendacz99 Date: Wed, 2 Nov 2022 11:53:05 +0100 Subject: [PATCH] disable python module docstring linting --- lua/my-lint.lua | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/lua/my-lint.lua b/lua/my-lint.lua index 6b85c19..a10fe97 100644 --- a/lua/my-lint.lua +++ b/lua/my-lint.lua @@ -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, }) -