From f69db22433aef07ddadc4d9d5bae9db00a74f12f Mon Sep 17 00:00:00 2001 From: stulle123 Date: Mon, 29 Aug 2022 17:14:18 +0200 Subject: [PATCH] Update file size to 500 kilobytes --- python/lib/dependabot/python/file_fetcher.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/lib/dependabot/python/file_fetcher.rb b/python/lib/dependabot/python/file_fetcher.rb index 14f93c4d9ec..745841a66f6 100644 --- a/python/lib/dependabot/python/file_fetcher.rb +++ b/python/lib/dependabot/python/file_fetcher.rb @@ -169,7 +169,7 @@ def req_txt_and_in_files repo_contents. select { |f| f.type == "file" }. select { |f| f.name.end_with?(".txt", ".in") }. - reject { |f| f.size > 200_000 }. + reject { |f| f.size > 500_000 }. map { |f| fetch_file_from_host(f.name) }. select { |f| requirements_file?(f) }. each { |f| @req_txt_and_in_files << f } @@ -189,7 +189,7 @@ def req_files_for_dir(requirements_dir) repo_contents(dir: relative_reqs_dir). select { |f| f.type == "file" }. select { |f| f.name.end_with?(".txt", ".in") }. - reject { |f| f.size > 200_000 }. + reject { |f| f.size > 500_000 }. map { |f| fetch_file_from_host("#{relative_reqs_dir}/#{f.name}") }. select { |f| requirements_file?(f) } end