commit f286b3a9b40ac0577ae20c1c99a40098f41ed181
parent 484ee5667c0cb2ff8b0a709487d6043f4ff09578
Author: Alex Hochheiden <ahochheiden@mozilla.com>
Date: Thu, 8 Jan 2026 21:13:33 +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 []