diff --git a/.pylintrc b/.pylintrc index af49c4f..703973b 100644 --- a/.pylintrc +++ b/.pylintrc @@ -1,5 +1,21 @@ # pylint config -[MESSAGES CONTROL] -disable=line-too-long, redefined-outer-name, too-many-arguments, too-many-instance-attributes, fixme, invalid-name, superfluous-parens, missing-function-docstring, missing-module-docstring, multiple-imports, no-else-return, too-many-return-statements, too-many-branches, too-many-statements [MASTER] ignore-patterns=^test.* + +[MESSAGES CONTROL] +disable=fixme, + consider-using-f-string, + invalid-name, + line-too-long, + missing-function-docstring, + missing-module-docstring, + multiple-imports, + no-else-return, + redefined-outer-name, + superfluous-parens, + too-many-locals, + too-many-arguments, + too-many-branches, + too-many-instance-attributes, + too-many-return-statements, + too-many-statements diff --git a/check_http_json.py b/check_http_json.py index 092871b..67defed 100755 --- a/check_http_json.py +++ b/check_http_json.py @@ -609,6 +609,7 @@ def main(cliargs): databytes = str(args.data).encode() response = urllib.request.urlopen(req, data=databytes, context=context) else: + # pylint: disable=consider-using-with response = urllib.request.urlopen(req, context=context) json_data = response.read()