Class: Dependabot::Python::FileFetcher

Inherits:
SharedFileFetcher show all
Extended by:
T::Sig
Defined in:
lib/dependabot/python/file_fetcher.rb

Constant Summary collapse

ECOSYSTEM_SPECIFIC_FILES =
T.let(%w(Pipfile setup.py setup.cfg).freeze, T::Array[String])

Constants inherited from SharedFileFetcher

SharedFileFetcher::CHILD_REQUIREMENT_REGEX, SharedFileFetcher::CONSTRAINT_REGEX, SharedFileFetcher::DEPENDENCY_TYPES, SharedFileFetcher::MAX_FILE_SIZE

Class Method Summary collapse

Methods inherited from SharedFileFetcher

#ecosystem_versions, #fetch_files, required_files_in?

Class Method Details

.ecosystem_specific_required_filesObject



21
22
23
# File 'lib/dependabot/python/file_fetcher.rb', line 21

def self.ecosystem_specific_required_files
  ECOSYSTEM_SPECIFIC_FILES
end

.required_files_messageObject



26
27
28
29
# File 'lib/dependabot/python/file_fetcher.rb', line 26

def self.required_files_message
  "Repo must contain a requirements.txt, setup.py, setup.cfg, pyproject.toml, " \
    "or a Pipfile."
end