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()
local version = require("cp.version")
vim.health.start("cp.nvim health check")
vim.health.info("Version: " .. version.version)
if version.semver then
vim.health.info("Semantic version: v" .. version.semver.full)

View file

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

View file

@ -3,12 +3,12 @@ local M = {}
local function get_git_version()
local plugin_path = debug.getinfo(1, "S").source:sub(2)
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,
text = true
text = true,
}):wait()
if result.code == 0 then
return result.stdout:gsub("\n", "")
else
@ -24,7 +24,7 @@ local function parse_semver(version_string)
full = semver,
major = tonumber(major),
minor = tonumber(minor),
patch = tonumber(patch)
patch = tonumber(patch),
}
end
return nil
@ -33,4 +33,4 @@ end
M.version = get_git_version()
M.semver = parse_semver(M.version)
return M
return M