Skip to content

Commit

Permalink
lint cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
pavera committed Jul 25, 2023
1 parent 5532f86 commit 26cf1dd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions python/lib/dependabot/python/file_fetcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@ def ecosystem_versions
language_version_manager = LanguageVersionManager.new(python_requirement_parser: python_requirement_parser)
{
languages: {
"python": {
# TODO: alternatively this could use `python_requirement_parser.user_specified_requirements` which returns an
# array... which we could flip to return a hash of manifest name => version string and then check for min/max
# versions... today it simply defaults to array.first which seems rather arbitrary.
python: {
# TODO: alternatively this could use `python_requirement_parser.user_specified_requirements` which
# returns an array... which we could flip to return a hash of manifest name => version
# string and then check for min/max versions... today it simply defaults to
# array.first which seems rather arbitrary.
"raw" => language_version_manager.user_specified_python_version || "unknown",
"max" => language_version_manager.python_major_minor || "unknown"
}
Expand Down

0 comments on commit 26cf1dd

Please sign in to comment.