From 244ff3c5b0e2360f880fb66330e01a32340cadea Mon Sep 17 00:00:00 2001 From: Lars Holmberg Date: Wed, 13 Mar 2024 10:45:03 +0100 Subject: [PATCH] Remove remainders of pylint --- .pylintrc | 23 ------------------- har2locust/default_plugins/default_headers.py | 2 +- har2locust/default_plugins/rest.py | 2 +- 3 files changed, 2 insertions(+), 25 deletions(-) delete mode 100644 .pylintrc diff --git a/.pylintrc b/.pylintrc deleted file mode 100644 index bf3ae60..0000000 --- a/.pylintrc +++ /dev/null @@ -1,23 +0,0 @@ -[FORMAT] -max-line-length=300 -max-args=6 -max-nested-blocks=7 - -[BASIC] -# only require really big functions to have docstrings. and we should never have this long functions. -docstring-min-length=100 -# allow single letter variable names -variable-rgx=[a-z0-9_]{1,30}$ -attr-rgx=[a-z0-9_]{1,30}$ -ignored-argument-names=_.*|^ignored_|^unused_|^kwargs|^environment - -[MESSAGES CONTROL] -disable=logging-not-lazy,logging-fstring-interpolation,missing-docstring,wrong-import-position,wrong-import-order,too-few-public-methods,invalid-name,protected-access,logging-format-interpolation,dangerous-default-value,global-statement,too-many-locals,too-many-arguments,too-many-instance-attributes,blacklisted-name,attribute-defined-outside-init,broad-except,bare-except,consider-using-with,too-many-branches,unspecified-encoding,arguments-differ,unsupported-binary-operation,broad-exception-raised - -[MASTER] -ignore=locustio,examples -extension-pkg-whitelist=lxml - -[SIMILARITIES] -# Minimum lines number of a similarity - set high to avoid issues with examples/transaction* -min-similarity-lines=25 \ No newline at end of file diff --git a/har2locust/default_plugins/default_headers.py b/har2locust/default_plugins/default_headers.py index 3a3f4b4..692d46d 100644 --- a/har2locust/default_plugins/default_headers.py +++ b/har2locust/default_plugins/default_headers.py @@ -13,7 +13,7 @@ def default_headers(entries: list[dict], _args): if default_headers is None: default_headers = headers[:] else: - for dh in default_headers[:]: # pylint: disable=unsubscriptable-object + for dh in default_headers[:]: if dh["name"] == "accept-language": # accept-language is likely to be common among most requests so we never remove it from default headers # (instead it will be overridden in the specific requests where it differs) diff --git a/har2locust/default_plugins/rest.py b/har2locust/default_plugins/rest.py index ea767a3..23b5259 100644 --- a/har2locust/default_plugins/rest.py +++ b/har2locust/default_plugins/rest.py @@ -18,7 +18,7 @@ def rest(entries: list[dict]): # The following is no longer needed, now that rest-method is a part of FastHttpUser, but can still serve as a good example: -# from ast import * # pylint: disable-all +# from ast import * # from har2locust.plugin import astprocessor # # @astprocessor