commit a198379dd7110a4fc8445ecb54435f4bcfdfe987
parent 8e2f1e924bfe4773f742c1b572b35bf2141028f9
Author: Alex Hochheiden <ahochheiden@mozilla.com>
Date: Wed, 7 Jan 2026 17:17:28 +0000
Bug 2006716 - Remove unused `default_bindir()` from ruff.py r=ahal,linter-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D276899
Diffstat:
1 file changed, 0 insertions(+), 11 deletions(-)
diff --git a/tools/lint/python/ruff.py b/tools/lint/python/ruff.py
@@ -4,11 +4,9 @@
import json
import os
-import platform
import re
import signal
import subprocess
-import sys
from pathlib import Path
import toml
@@ -17,15 +15,6 @@ from mozlint import result
here = os.path.abspath(os.path.dirname(__file__))
-def default_bindir():
- # We use sys.prefix to find executables as that gets modified with
- # virtualenv's activate_this.py, whereas sys.executable doesn't.
- if platform.system() == "Windows":
- return os.path.join(sys.prefix, "Scripts")
- else:
- return os.path.join(sys.prefix, "bin")
-
-
def get_pyproject_excludes(pyproject_toml: Path):
if not pyproject_toml.exists():
return []