mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Enable Ruff ARG (flake8-unsued-arguments) and remove unused arguments (#13334)
This commit is contained in:
@@ -237,7 +237,7 @@ class Result:
|
||||
test_case_dir: Path
|
||||
tempdir: Path
|
||||
|
||||
def print_description(self, *, verbosity: Verbosity) -> None:
|
||||
def print_description(self) -> None:
|
||||
if self.code:
|
||||
print(f"{self.command_run}:", end=" ")
|
||||
print_error("FAILURE\n")
|
||||
@@ -382,7 +382,7 @@ def main() -> ReturnCode:
|
||||
print()
|
||||
|
||||
for result in results:
|
||||
result.print_description(verbosity=verbosity)
|
||||
result.print_description()
|
||||
|
||||
code = max(result.code for result in results)
|
||||
|
||||
|
||||
@@ -140,7 +140,7 @@ def run_stubtest(
|
||||
|
||||
print_divider()
|
||||
print("Commands run:")
|
||||
print_commands(dist, pip_cmd, stubtest_cmd, mypypath)
|
||||
print_commands(pip_cmd, stubtest_cmd, mypypath)
|
||||
|
||||
print_divider()
|
||||
print("Command output:\n")
|
||||
@@ -183,7 +183,7 @@ def run_stubtest(
|
||||
rmtree(venv_dir)
|
||||
|
||||
if verbose:
|
||||
print_commands(dist, pip_cmd, stubtest_cmd, mypypath)
|
||||
print_commands(pip_cmd, stubtest_cmd, mypypath)
|
||||
|
||||
return True
|
||||
|
||||
@@ -358,7 +358,7 @@ def setup_uwsgi_stubtest_command(dist: Path, venv_dir: Path, stubtest_cmd: list[
|
||||
return True
|
||||
|
||||
|
||||
def print_commands(dist: Path, pip_cmd: list[str], stubtest_cmd: list[str], mypypath: str) -> None:
|
||||
def print_commands(pip_cmd: list[str], stubtest_cmd: list[str], mypypath: str) -> None:
|
||||
print()
|
||||
print(" ".join(pip_cmd))
|
||||
print(f"MYPYPATH={mypypath}", " ".join(stubtest_cmd))
|
||||
|
||||
Reference in New Issue
Block a user