@@ -55,7 +55,7 @@ def make_sarif_run(tool_name: str) -> dict:
55
55
return sarif_run
56
56
57
57
58
- def flake8_linter (target : Path , * args ) -> None :
58
+ def flake8_linter (target : Path , * _args ) -> None :
59
59
"""Run the flake8 linter.
60
60
61
61
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:
155
155
return sarif_run
156
156
157
157
158
- def ruff_linter (target : Path , * args ) -> Optional [dict ]:
158
+ def ruff_linter (target : Path , * _args ) -> Optional [dict ]:
159
159
"""Run the ruff linter."""
160
160
try :
161
161
# pylint: disable=import-outside-toplevel
@@ -257,7 +257,7 @@ def pylint_format_sarif(results: List[Dict[str, Any]], target: Path) -> dict:
257
257
return sarif_run
258
258
259
259
260
- def pylint_linter (target : Path , * args ) -> Optional [dict ]:
260
+ def pylint_linter (target : Path , * _args ) -> Optional [dict ]:
261
261
"""Run the pylint linter."""
262
262
process = run (
263
263
["pylint" , "--output-format=json" , "--recursive=y" , target .absolute ().as_posix ()],
@@ -680,7 +680,7 @@ def fixit_format_sarif(results: str, target: Path) -> dict:
680
680
return sarif_run
681
681
682
682
683
- def fixit_linter (target : Path ) -> Optional [dict ]:
683
+ def fixit_linter (target : Path , * _args ) -> Optional [dict ]:
684
684
"""Run the fixit linter, from Meta."""
685
685
process = run (["fixit" , "lint" , target .absolute ().as_posix ()], capture_output = True , check = False )
686
686
0 commit comments