From c76073d27754044a41c0de6eb143c34aedff0a90 Mon Sep 17 00:00:00 2001 From: Lars Holmberg Date: Fri, 14 Jun 2024 17:28:33 +0200 Subject: [PATCH] Explicitly set ignored variable names for ruff to include resp. Fixes #18 when har2locust is run without a pyproject.toml that specifies this. --- har2locust/default_plugins/ruff.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/har2locust/default_plugins/ruff.py b/har2locust/default_plugins/ruff.py index e3f3683..79f0272 100644 --- a/har2locust/default_plugins/ruff.py +++ b/har2locust/default_plugins/ruff.py @@ -19,6 +19,8 @@ def ruff(py: str): "--fix", "-q", "--exit-zero", # ignore linting fails, we're most interested in applying fixes, and it is up to the user to examin errors + "--dummy-variable-rgx", + "_.*|^ignored_|^unused_|^kwargs|^environment|^resp", "-", ], stdin=subprocess.PIPE,