From 3f1122ac5394538a1c9ee6bcb845e6ab518f3f0c Mon Sep 17 00:00:00 2001 From: George Rawlinson Date: Tue, 7 Feb 2023 20:54:01 +1300 Subject: [PATCH] feat(nvim): add Python snippets --- nvim/.config/nvim/UltiSnips/PKGBUILD.snippets | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/nvim/.config/nvim/UltiSnips/PKGBUILD.snippets b/nvim/.config/nvim/UltiSnips/PKGBUILD.snippets index c02eeb2..1ec88ff 100644 --- a/nvim/.config/nvim/UltiSnips/PKGBUILD.snippets +++ b/nvim/.config/nvim/UltiSnips/PKGBUILD.snippets @@ -182,4 +182,19 @@ snippet pkgcl "Package (Common Lisp)" i "$pkgdir/usr/share/common-lisp/source/$_pkgname" endsnippet +# +# Python specific +# +snippet buildpy "Build (Python)" i + python -m build --wheel --no-isolation +endsnippet + +snippet chkpy "Check (Python)" i + pytest -v +endsnippet + +snippet pkgpy "Package (Python)" i + python -m installer --destdir="$pkgdir" dist/*.whl +endsnippet + # vim: tabstop=2 shiftwidth=2 expandtab