From aab8a9b543f1d6d71669eb63c64e848518ea7768 Mon Sep 17 00:00:00 2001 From: Derek Wan Date: Mon, 6 Jan 2025 21:09:56 +0900 Subject: [PATCH] Update aliases (#214) * Saved at 2025-01-06 21:09:25 (Mon) * Saved at 2025-01-06 21:09:50 (Mon) --- .bumpversion.cfg | 2 +- nvim/lazy-lock.json | 34 +++++++++++++++++----------------- nvim/lua/snippets.lua | 26 +++++++++++++------------- 3 files changed, 31 insertions(+), 31 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 1e96bf6..904731a 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,2 +1,2 @@ [bumpversion] -current_version = 0.1.211 +current_version = 0.1.212 diff --git a/nvim/lazy-lock.json b/nvim/lazy-lock.json index b665fa0..87890cb 100644 --- a/nvim/lazy-lock.json +++ b/nvim/lazy-lock.json @@ -37,7 +37,7 @@ }, "conform.nvim": { "branch": "master", - "commit": "9180320205d250429f0f80e073326c674e2a7149" + "commit": "70019124aa4f2e6838be9fbd2007f6d13b27a96d" }, "dial.nvim": { "branch": "master", @@ -53,7 +53,7 @@ }, "fzf-lua": { "branch": "main", - "commit": "c054a21cd22cef41c62ce96247040abccaab8dbc" + "commit": "60428a8dc931639ee5e88756b2d7bc896cdc20c7" }, "gitsigns.nvim": { "branch": "main", @@ -61,7 +61,7 @@ }, "inc-rename.nvim": { "branch": "main", - "commit": "f4e13df6e2d0b3177a7305dbc1cc7f7ea44b94f1" + "commit": "4d00cd5029e99f176128bc37ef245e2dd348191d" }, "indent-blankline.nvim": { "branch": "master", @@ -73,7 +73,7 @@ }, "lazy.nvim": { "branch": "main", - "commit": "7e6c863bc7563efbdd757a310d17ebc95166cef3" + "commit": "72aa3a2624be5dc240646084f7b6a38eb99eb2ce" }, "lazydev.nvim": { "branch": "main", @@ -93,7 +93,7 @@ }, "luasnip": { "branch": "master", - "commit": "33b06d72d220aa56a7ce80a0dd6f06c70cd82b9d" + "commit": "c9b9a22904c97d0eb69ccb9bab76037838326817" }, "marks.nvim": { "branch": "master", @@ -101,7 +101,7 @@ }, "mason-lspconfig.nvim": { "branch": "main", - "commit": "c6c686781f9841d855bf1b926e10aa5e19430a38" + "commit": "97d9f1d3ad205dece6bcafd1d71cf1507608f3c7" }, "mason-tool-installer.nvim": { "branch": "main", @@ -125,11 +125,11 @@ }, "nvim-bqf": { "branch": "main", - "commit": "68d3c20f6bee49105dcfde3df1f7ec972529f2a3" + "commit": "ebb6d2689e4427452180f17c53f29f7e460236f1" }, "nvim-cmp": { "branch": "main", - "commit": "b555203ce4bd7ff6192e759af3362f9d217e8c89" + "commit": "5a9ad0d88b3982ce7c67bfef8d805f8aafc88385" }, "nvim-colorizer.lua": { "branch": "master", @@ -149,11 +149,11 @@ }, "nvim-lint": { "branch": "master", - "commit": "6b46370d02cd001509a765591a3ffc481b538794" + "commit": "dfa45de973c3ce7bd1b9a6d346f896a68ad07e44" }, "nvim-lspconfig": { "branch": "master", - "commit": "8b15a1a597a59f4f5306fad9adfe99454feab743" + "commit": "8121483b8132b7053120fafd83728178fb3febf6" }, "nvim-neoclip.lua": { "branch": "main", @@ -177,11 +177,11 @@ }, "nvim-treesitter": { "branch": "master", - "commit": "c47d8d27d047634d00a07ca80a1b694624743b38" + "commit": "958af94dd8d74071c72c9d6840b41d06ea436b2f" }, "nvim-treesitter-context": { "branch": "master", - "commit": "2bcf700b59bc92850ca83a1c02e86ba832e0fae0" + "commit": "f1f106bac81c1ae5c971c52d3548d757fa4056b3" }, "nvim-treesitter-textobjects": { "branch": "master", @@ -189,11 +189,11 @@ }, "nvim-various-textobjs": { "branch": "main", - "commit": "d3ccc9896e8fd81063196352426f78c5085a13a3" + "commit": "b43a13448c3c3a4fca027595f7b6fc3522758e00" }, "nvim-web-devicons": { "branch": "master", - "commit": "4adeeaa7a32d46cf3b5833341358c797304f950a" + "commit": "5740b7382429d20b6ed0bbdb0694185af9507d44" }, "plenary.nvim": { "branch": "master", @@ -201,7 +201,7 @@ }, "rainbow-delimiters.nvim": { "branch": "master", - "commit": "77e5bad54227dcfe3878ffbda88ab1efdaacb475" + "commit": "8f7af53581302dc2b25cdfb67a45983a5a2c3f09" }, "sort.nvim": { "branch": "main", @@ -221,7 +221,7 @@ }, "tokyonight.nvim": { "branch": "main", - "commit": "45d22cf0e1b93476d3b6d362d720412b3d34465c" + "commit": "7bb270adaa7692c2c33befc35f5567fc596a2504" }, "trouble.nvim": { "branch": "main", @@ -261,7 +261,7 @@ }, "which-key.nvim": { "branch": "main", - "commit": "8ab96b38a2530eacba5be717f52e04601eb59326" + "commit": "1f8d414f61e0b05958c342df9b6a4c89ce268766" }, "wildfire.nvim": { "branch": "master", diff --git a/nvim/lua/snippets.lua b/nvim/lua/snippets.lua index 8b71d8d..fc8e2d3 100644 --- a/nvim/lua/snippets.lua +++ b/nvim/lua/snippets.lua @@ -122,6 +122,7 @@ ls.add_snippets("python", { s("it-accumulate", { t({ "from itertools import accumulate", "" }) }), s("it-chain", { t({ "from itertools import chain", "" }) }), s("it-count", { t({ "from itertools import count", "" }) }), + s("it-cycle", { t({ "from itertools import cycle", "" }) }), s("it-groupby", { t({ "from itertools import groupby", "" }) }), s("it-product", { t({ "from itertools import product", "" }) }), s("it-starmap", { t({ "from itertools import starmap", "" }) }), @@ -191,18 +192,15 @@ ls.add_snippets("python", { s("a0", { t({ "from rich.pretty import pretty_repr", "", "assert 0, pretty_repr(locals(), max_length=5)" }) }), s("mo", { t({ "@mark.only", "" }) }), s("mmo", { t({ "marks=mark.only", "" }) }), - s("ms", { t({ "@mark.skip", "" }) }), - s("mx", { t({ "@mark.xfail", "" }) }), - s("mark-only", { t({ "@mark.only", "" }) }), - s("mark-parametrize", { + s("mp", { t({ '@mark.parametrize("' }), i(1, "arg1"), t({ '", [param(' }), i(2, "param1"), - t(")], ids=str)"), + t(")])"), }), - s("mark-skip", { t({ "@mark.skip", "" }) }), - s("mark-xfail", { t({ "@mark.xfail", "" }) }), + s("ms", { t({ "@mark.skip", "" }) }), + s("mx", { t({ "@mark.xfail", "" }) }), s("py-approx", { t({ "from pytest import approx", "" }) }), s("py-fixture", { t({ "from pytest import fixture", "" }) }), s("py-mark", { t({ "from pytest import mark, param", "" }) }), @@ -322,12 +320,12 @@ ls.add_snippets("python", { s("ut-check-polars-dataframe", { t({ "from utilities.polars import check_polars_dataframe", "" }) }), s("ut-date-to-datetime", { t({ "from utilities.datetime import date_to_datetime", "" }) }), s("ut-duration", { t({ "from utilities.types import Duration", "" }) }), - s("ut-ensure-date", { t({ "from utilities.types import ensure_date", "" }) }), - s("ut-ensure-float", { t({ "from utilities.types import ensure_float", "" }) }), - s("ut-ensure-int", { t({ "from utilities.types import ensure_int", "" }) }), - s("ut-ensure-member", { t({ "from utilities.types import ensure_member", "" }) }), - s("ut-ensure-not-none", { t({ "from utilities.types import ensure_not_none", "" }) }), - s("ut-ensure-number", { t({ "from utilities.types import ensure_number", "" }) }), + s("ut-ensure-date", { t({ "from utilities.functions import ensure_date", "" }) }), + s("ut-ensure-float", { t({ "from utilities.functions import ensure_float", "" }) }), + s("ut-ensure-int", { t({ "from utilities.functions import ensure_int", "" }) }), + s("ut-ensure-member", { t({ "from utilities.functions import ensure_member", "" }) }), + s("ut-ensure-not-none", { t({ "from utilities.functions import ensure_not_none", "" }) }), + s("ut-ensure-number", { t({ "from utilities.functions import ensure_number", "" }) }), s("ut-ensure-str", { t({ "from utilities.text import ensure_str", "" }) }), s("ut-extract-group", { t({ "from utilities.re import extract_group", "" }) }), s("ut-extract-groups", { t({ "from utilities.re import extract_groups", "" }) }), @@ -346,12 +344,14 @@ ls.add_snippets("python", { s("ut-lists-fixed-length", { t({ "from utilities.hypothesis import lists_fixed_length", "" }) }), s("ut-log-level", { t({ "from utilities.logging import LogLevel", "" }) }), s("ut-minute", { t({ "from utilities.datetime import MINUTE", "" }) }), + s("ut-number", { t({ "from utilities.types import Number", "" }) }), s("ut-one", { t({ "from utilities.iterables import one", "" }) }), s("ut-one-empty-error", { t({ "from utilities.iterables import OneEmptyError", "" }) }), s("ut-one-non-unique-error", { t({ "from utilities.iterables import OneNonUniqueError", "" }) }), s("ut-parse-date", { t({ "from utilities.whenever import parse_date", "" }) }), s("ut-partial", { t({ "from utilities.functools import partial", "" }) }), s("ut-path-like", { t({ "from utilities.pathlib import PathLike", "" }) }), + s("ut-period", { t({ "from utilities.period import Period", "" }) }), s("ut-read-pickle", { t({ "from utilities.pickle import read_pickle", "" }) }), s("ut-replace-non-sentinel", { t({ "from utilities.dataclasses import replace_non_sentinel", "" }) }), s("ut-repr-without-defaults", { t({ "from utilities.dataclasses import repr_without_defaults", "" }) }),