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
1 changed files with 15 additions and 0 deletions

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