From 514afa0dacf0f6fde631dced2c0e25f702a24659 Mon Sep 17 00:00:00 2001 From: Bouni Date: Thu, 9 Mar 2023 09:16:02 +0100 Subject: [PATCH 1/2] Add more linter rules --- pyproject.toml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index d6bff9a2..85b2ef2d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -56,5 +56,22 @@ include-package-data = true [tool.setuptools.packages.find] include = ["luxtronik*"] +[tool.pylint.format] +max-line-length = 120 # Set a better lin length limit, 80 chars is just archaic +max-attributes = 10 # Allow more than 7 attributes in a class + +[tool.pylint.MASTER] +# Pickle collected data for later comparisons. +persistent = 'yes' + +# When enabled, pylint would attempt to guess common misconfiguration and emit +# user-friendly hints instead of false-positive error messages. +suggestion-mode = 'yes' + +[tool.pylint.messages_control] +disable = [ + "W0511", # Allow TODO comments +] + [tool.ruff] line-length = 120 From b1bfef53f7f611a60e8211910fa6db9dc80af620 Mon Sep 17 00:00:00 2001 From: Karol Babioch Date: Thu, 9 Mar 2023 10:30:05 +0100 Subject: [PATCH 2/2] Fix typo in pyproject.toml --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 85b2ef2d..977664b3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -57,7 +57,7 @@ include-package-data = true include = ["luxtronik*"] [tool.pylint.format] -max-line-length = 120 # Set a better lin length limit, 80 chars is just archaic +max-line-length = 120 # Set a better line length limit, 80 chars is just archaic max-attributes = 10 # Allow more than 7 attributes in a class [tool.pylint.MASTER]