From: Juerg Haefliger Date: Fri, 10 Feb 2023 09:19:58 +0000 (+0100) Subject: Add 'pylint' target and config section X-Git-Tag: v0.1~30 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=0aa1d3b57edf8d1acde16a51a86695239f6867dc;p=annotations.git Add 'pylint' target and config section Signed-off-by: Juerg Haefliger --- diff --git a/Makefile b/Makefile index 68a710b..317440a 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,11 @@ -.PHONY: all lint +.PHONY: all lint flake8 pylint all: lint -lint: +lint: flake8 pylint + +flake8: flake8 annotations . + +pylint: + pylint annotations kconfig diff --git a/setup.cfg b/setup.cfg index 6fff888..cde74f6 100644 --- a/setup.cfg +++ b/setup.cfg @@ -3,3 +3,29 @@ max_line_length = 120 per-file-ignores = # E402 module level import not at top of file annotations: E402 + + +[pylint.FORMAT] +max-line-length = 120 + +[pylint] +# These are the default disables but for some reason we seem to loose them +# due to the above statement (huh?). So redefine them. +disable = invalid-name, + missing-module-docstring, + missing-class-docstring, + missing-function-docstring, + wrong-import-position, + raw-checker-failed, + bad-inline-option, + locally-disabled, + file-ignored, + suppressed-message, + useless-suppression, + deprecated-pragma, + use-symbolic-message-instead, + too-many-instance-attributes, + too-many-arguments, + too-many-locals, + too-many-statements, + redefined-outer-name