Enable ruff RUF005 and fix occurrences (#113589)

This commit is contained in:
Sid
2024-03-16 18:37:20 +01:00
committed by GitHub
parent 2a5c85a020
commit ccd2e989c3
58 changed files with 150 additions and 128 deletions

View File

@@ -69,7 +69,7 @@ def test_skip_pip_mutually_exclusive(mock_exit) -> None:
"""Test --skip-pip and --skip-pip-package are mutually exclusive."""
def parse_args(*args):
with patch("sys.argv", ["python"] + list(args)):
with patch("sys.argv", ["python", *args]):
return main.get_arguments()
args = parse_args("--skip-pip")