class Dependabot::Uv::FileParser
def remove_imports(file)
def remove_imports(file) return file.content if file.path.end_with?(".tar.gz", ".whl", ".zip") file.content.lines .reject { |l| l.match?(/^['"]?(?<path>\..*?)(?=\[|#|'|"|$)/) } .reject { |l| l.match?(/^(?:-e)\s+['"]?(?<path>.*?)(?=\[|#|'|"|$)/) } .join end