Class: Dependabot::Uv::FileUpdater
- Inherits:
-
FileUpdaters::Base
- Object
- FileUpdaters::Base
- Dependabot::Uv::FileUpdater
show all
- Extended by:
- T::Sig
- Defined in:
- lib/dependabot/uv/file_updater.rb,
lib/dependabot/uv/file_updater/pyproject_preparer.rb,
lib/dependabot/uv/file_updater/compile_file_updater.rb,
lib/dependabot/uv/file_updater/requirement_replacer.rb,
lib/dependabot/uv/file_updater/requirement_file_updater.rb
Defined Under Namespace
Classes: CompileFileUpdater, PyprojectPreparer, RequirementFileUpdater, RequirementReplacer
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.updated_files_regex ⇒ Object
19
20
21
22
23
24
25
|
# File 'lib/dependabot/uv/file_updater.rb', line 19
def self.updated_files_regex
[
/^.*\.txt$/, /^.*\.in$/, /^.*pyproject\.toml$/ ]
end
|
Instance Method Details
#updated_dependency_files ⇒ Object
28
29
30
31
32
33
34
35
36
37
|
# File 'lib/dependabot/uv/file_updater.rb', line 28
def updated_dependency_files
updated_files = updated_pip_compile_based_files
if updated_files.none? ||
updated_files.sort_by(&:name) == dependency_files.sort_by(&:name)
raise "No files have changed!"
end
updated_files
end
|