From c784c559fa37407dfec6abc7734cb61bd5e7cc7f Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Wed, 7 Sep 2022 17:50:38 -0400 Subject: style: adapt to latest pylint concerns Before these changes, these violations happened: ``` lint run-test: commands[6] | python -m pylint --notes= coverage tests doc ci igor.py setup.py __main__.py ************* Module coverage.parser coverage/parser.py:1290 I: Useless suppression of 'too-many-function-args' (useless-suppression) ************* Module ci.download_gha_artifacts ci/download_gha_artifacts.py:18 W: Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely (missing-timeout) ci/download_gha_artifacts.py:54 W: Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely (missing-timeout) ************* Module ci.trigger_build_kits ci/trigger_build_kits.py:21 W: Missing timeout argument for method 'requests.post' can cause your program to hang indefinitely (missing-timeout) ************* Module ci.github_releases ci/github_releases.py:138 E: Too many positional arguments for function call (too-many-function-args) ci/github_releases.py:138 I: Useless suppression of 'no-value-for-parameter' (useless-suppression) ************* Module ci.comment_on_fixes ci/comment_on_fixes.py:30 W: Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely (missing-timeout) ci/comment_on_fixes.py:37 W: Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely (missing-timeout) ci/comment_on_fixes.py:49 W: Missing timeout argument for method 'requests.post' can cause your program to hang indefinitely (missing-timeout) ************* Module ci.parse_relnotes ci/parse_relnotes.py:126 E: Too many positional arguments for function call (too-many-function-args) ci/parse_relnotes.py:126 I: Useless suppression of 'no-value-for-parameter' (useless-suppression) ``` --- ci/github_releases.py | 2 +- ci/parse_relnotes.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'ci') diff --git a/ci/github_releases.py b/ci/github_releases.py index 9f21d027..166011fb 100644 --- a/ci/github_releases.py +++ b/ci/github_releases.py @@ -135,4 +135,4 @@ def update_github_releases(json_filename, repo): update_release(gh_session, url, relnote) if __name__ == "__main__": - update_github_releases(*sys.argv[1:]) # pylint: disable=no-value-for-parameter + update_github_releases(*sys.argv[1:3]) diff --git a/ci/parse_relnotes.py b/ci/parse_relnotes.py index cdb8526c..deebae5d 100644 --- a/ci/parse_relnotes.py +++ b/ci/parse_relnotes.py @@ -123,4 +123,4 @@ def parse(md_filename, json_filename): json.dump(list(relnotes(markdown.splitlines(True))), jf, indent=4) if __name__ == "__main__": - parse(*sys.argv[1:]) # pylint: disable=no-value-for-parameter + parse(*sys.argv[1:3]) -- cgit v1.2.1