feat(ci): Format

This commit is contained in:
Barrett Ruth 2025-09-13 00:41:51 -05:00
parent f13a05c806
commit 04274186cc
4 changed files with 7 additions and 9 deletions

View file

@ -77,7 +77,7 @@ end
function M.check() function M.check()
local version = require("cp.version") local version = require("cp.version")
vim.health.start("cp.nvim health check") vim.health.start("cp.nvim health check")
vim.health.info("Version: " .. version.version) vim.health.info("Version: " .. version.version)
if version.semver then if version.semver then
vim.health.info("Semantic version: v" .. version.semver.full) vim.health.info("Semantic version: v" .. version.semver.full)

View file

@ -89,7 +89,6 @@ function M.scrape_problem(ctx)
return data return data
end end
if #data.test_cases > 0 then if #data.test_cases > 0 then
local all_inputs = {} local all_inputs = {}
local all_outputs = {} local all_outputs = {}

View file

@ -3,12 +3,12 @@ local M = {}
local function get_git_version() local function get_git_version()
local plugin_path = debug.getinfo(1, "S").source:sub(2) local plugin_path = debug.getinfo(1, "S").source:sub(2)
local plugin_root = vim.fn.fnamemodify(plugin_path, ":h:h:h") local plugin_root = vim.fn.fnamemodify(plugin_path, ":h:h:h")
local result = vim.system({"git", "describe", "--tags", "--always", "--dirty"}, { local result = vim.system({ "git", "describe", "--tags", "--always", "--dirty" }, {
cwd = plugin_root, cwd = plugin_root,
text = true text = true,
}):wait() }):wait()
if result.code == 0 then if result.code == 0 then
return result.stdout:gsub("\n", "") return result.stdout:gsub("\n", "")
else else
@ -24,7 +24,7 @@ local function parse_semver(version_string)
full = semver, full = semver,
major = tonumber(major), major = tonumber(major),
minor = tonumber(minor), minor = tonumber(minor),
patch = tonumber(patch) patch = tonumber(patch),
} }
end end
return nil return nil
@ -33,4 +33,4 @@ end
M.version = get_git_version() M.version = get_git_version()
M.semver = parse_semver(M.version) M.semver = parse_semver(M.version)
return M return M

View file

@ -20,4 +20,3 @@ end, {
end, commands) end, commands)
end, end,
}) })