fix(ci): typing

This commit is contained in:
Barrett Ruth 2025-09-21 00:16:06 -04:00
parent 18939a9d5f
commit 98aa3edd41
2 changed files with 12 additions and 26 deletions

View file

@ -632,7 +632,7 @@ local function setup_contest(contest_id, language)
cache.load() cache.load()
local missing_problems = {} local missing_problems = {}
for _, problem in ipairs(problems) do for _, prob in ipairs(problems) do
local cached_tests = cache.get_test_cases(state.platform, contest_id, problem.id) local cached_tests = cache.get_test_cases(state.platform, contest_id, problem.id)
if not cached_tests then if not cached_tests then
table.insert(missing_problems, problem) table.insert(missing_problems, problem)

View file

@ -316,31 +316,17 @@ function M.scrape_problems_parallel(platform, contest_id, problems, config)
local jobs = {} local jobs = {}
for _, prob in ipairs(problems) do for _, prob in ipairs(problems) do
local args local args = {
if platform == 'cses' then 'uv',
args = { 'run',
'uv', '--directory',
'run', plugin_path,
'--directory', '-m',
plugin_path, 'scrapers.' .. platform,
'-m', 'tests',
'scrapers.' .. platform, contest_id,
'tests', prob.id,
prob.id, }
}
else
args = {
'uv',
'run',
'--directory',
plugin_path,
'-m',
'scrapers.' .. platform,
'tests',
contest_id,
prob.id,
}
end
local job = vim.system(args, { local job = vim.system(args, {
cwd = plugin_path, cwd = plugin_path,