From cf402487c7f8359e60b58820127f36bf8340594d Mon Sep 17 00:00:00 2001 From: Dmitry Shemetov Date: Wed, 25 Oct 2023 15:29:35 -0700 Subject: [PATCH] fix: sync lint settings with covidcast-indicators --- pyproject.toml | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index de8516625..1a4e6fae6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,25 +14,25 @@ profile = "black" known_third_party = ["pytest"] [tool.pylint] - # Settings copied from - # cmu-delphi/covidcast-indicators/_delphi_utils_python/.pylintrc - [tool.pylint.'MESSAGES CONTROL'] - max-line-length = 120 - disable = [ - 'logging-format-interpolation', - # Allow pytest functions to be part of a class - 'no-self-use', - 'too-many-locals', - 'too-many-arguments', - # Allow pytest classes to have one test - 'too-few-public-methods', - ] +[tool.pylint.main] +max-line-length = 120 +disable = [ + 'logging-format-interpolation', + # Allow pytest functions to be part of a class + 'no-self-use', + 'too-many-locals', + 'too-many-arguments', + 'too-many-branches', + # Allow pytest classes to have one test + 'too-few-public-methods', +] +enable = 'useless-suppression' - [tool.pylint.'BASIC'] - # Allow arbitrarily short-named variables. - variable-rgx = ['[a-z_][a-z0-9_]*'] - argument-rgx = [ '[a-z_][a-z0-9_]*' ] - attr-rgx = ['[a-z_][a-z0-9_]*'] +[tool.pylint.basic] +# Allow arbitrarily short-named variables. +variable-rgx = '[a-z_][a-z0-9_]*' +argument-rgx = '[a-z_][a-z0-9_]*' +attr-rgx = '[a-z_][a-z0-9_]*' - [tool.pylint.'DESIGN'] - ignored-argument-names = ['(_.*|run_as_module)'] +[tool.pylint.design] +ignored-argument-names = ['(_.*|run_as_module)']