Class: Dependabot::Uv::FileFetcher

Inherits:
Python::SharedFileFetcher
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/dependabot/uv/file_fetcher.rb,
lib/dependabot/uv/file_fetcher/workspace_fetcher.rb

Defined Under Namespace

Classes: WorkspaceFetcher

Constant Summary collapse

ECOSYSTEM_SPECIFIC_FILES =
T.let(%w(uv.lock).freeze, T::Array[String])
REQUIREMENT_FILE_PATTERNS =
T.let(
  {
    extensions: [".txt", ".in"],
    filenames: ["uv.lock"]
  }.freeze,
  T::Hash[Symbol, T::Array[String]]
)
README_FILENAMES =

Projects that use README files for metadata may use any of these common names

T.let(%w(README.md README.rst README.txt README).freeze, T::Array[String])
PathDependency =

Type alias for path dependency hashes

T.type_alias { T::Hash[Symbol, String] }

Class Method Summary collapse

Class Method Details

.ecosystem_specific_required_filesObject



36
37
38
39
# File 'lib/dependabot/uv/file_fetcher.rb', line 36

def self.ecosystem_specific_required_files
  # uv.lock is not a standalone required file - it requires pyproject.toml
  []
end

.required_files_messageObject



42
43
44
# File 'lib/dependabot/uv/file_fetcher.rb', line 42

def self.required_files_message
  "Repo must contain a requirements.txt, uv.lock, requirements.in, or pyproject.toml"
end