Skip to content

Commit 2737939

Browse files
committed
Swallow extra arg for fixit
1 parent 7943683 commit 2737939

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

python_lint.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def make_sarif_run(tool_name: str) -> dict:
5555
return sarif_run
5656

5757

58-
def flake8_linter(target: Path, *args) -> None:
58+
def flake8_linter(target: Path, *_args) -> None:
5959
"""Run the flake8 linter.
6060
6161
In contrast to the other linters, flake8 has plugin architecture.
@@ -155,7 +155,7 @@ def ruff_format_sarif(results: List[Dict[str, Any]], target: Path) -> dict:
155155
return sarif_run
156156

157157

158-
def ruff_linter(target: Path, *args) -> Optional[dict]:
158+
def ruff_linter(target: Path, *_args) -> Optional[dict]:
159159
"""Run the ruff linter."""
160160
try:
161161
# pylint: disable=import-outside-toplevel
@@ -257,7 +257,7 @@ def pylint_format_sarif(results: List[Dict[str, Any]], target: Path) -> dict:
257257
return sarif_run
258258

259259

260-
def pylint_linter(target: Path, *args) -> Optional[dict]:
260+
def pylint_linter(target: Path, *_args) -> Optional[dict]:
261261
"""Run the pylint linter."""
262262
process = run(
263263
["pylint", "--output-format=json", "--recursive=y", target.absolute().as_posix()],
@@ -680,7 +680,7 @@ def fixit_format_sarif(results: str, target: Path) -> dict:
680680
return sarif_run
681681

682682

683-
def fixit_linter(target: Path) -> Optional[dict]:
683+
def fixit_linter(target: Path, *_args) -> Optional[dict]:
684684
"""Run the fixit linter, from Meta."""
685685
process = run(["fixit", "lint", target.absolute().as_posix()], capture_output=True, check=False)
686686

0 commit comments

Comments
 (0)