Skip to content

Commit

Permalink
Explicitly set ignored variable names for ruff to include resp. Fixes #…
Browse files Browse the repository at this point in the history
…18 when har2locust is run without a pyproject.toml that specifies this.
  • Loading branch information
Lars Holmberg committed Jun 14, 2024
1 parent 8535222 commit c76073d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions har2locust/default_plugins/ruff.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c76073d

Please sign in to comment.