From 2e11c1e145825f341dfc024f9cfaeed8f0ae0da6 Mon Sep 17 00:00:00 2001 From: Ricardo Branco Date: Thu, 22 Jun 2023 17:40:29 +0200 Subject: [PATCH] Add pylint to Makefile & fix pylintrc --- Makefile | 4 ++++ pylintrc | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/Makefile b/Makefile index cea1235b..c41a3fc6 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,10 @@ all: prepare test prepare: pip install -r requirements_test.txt +.PHONY: pylint +pylint: + pylint ocw/lib/*.py cleanup_k8s.py + .PHONY: test test: flake8 --max-line-length=130 webui diff --git a/pylintrc b/pylintrc index 7e4f3d7e..49b07a16 100644 --- a/pylintrc +++ b/pylintrc @@ -1,5 +1,6 @@ [MASTER] disable= + C0103, # Module name "EC2" doesn't conform to snake_case naming style C0114, # missing-module-docstring C0115, # missing-class-docstring C0116, # missing-function-docstring @@ -8,10 +9,14 @@ disable= C0415, # Import outside toplevel E1101, # no-member R0904, # Too many public methods + R0912, # Too many branches R1702, # Too many nested blocks W0201, # Attribute %r defined outside __init__ + W0221, # arguments-differ W0237, # arguments-renamed + W0602, # Using global for 'FOOBAR' but no assignment is done W0603, # Using the global statement + W0613, # Unused argument 'args' W0703, # broad-except W0719, # broad-exception-raised