Add 'pylint' target and config section
authorJuerg Haefliger <juergh@proton.me>
Fri, 10 Feb 2023 09:19:58 +0000 (10:19 +0100)
committerJuerg Haefliger <juergh@proton.me>
Fri, 10 Feb 2023 09:23:15 +0000 (10:23 +0100)
Signed-off-by: Juerg Haefliger <juergh@proton.me>
Makefile
setup.cfg

index 68a710b216b7711e608c1859115546c92f74889b..317440a1cfe01fc22b2744cf9c5a2f4c0bca6642 100644 (file)
--- 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
index 6fff888433faf1931192c6e67dc978c0fa73a6bf..cde74f6bab893b6507974b34c21aad9eee179ffd 100644 (file)
--- 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