feat(nvim): add Python snippets

This commit is contained in:
George Rawlinson 2023-02-07 20:54:01 +13:00
parent e50ec4828b
commit 3f1122ac53
Signed by: grawlinson
GPG key ID: E0959FEA8B550539

View file

@ -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