feat(nvim): add Python snippets
This commit is contained in:
parent
e50ec4828b
commit
3f1122ac53
1 changed files with 15 additions and 0 deletions
|
@ -182,4 +182,19 @@ snippet pkgcl "Package (Common Lisp)" i
|
||||||
"$pkgdir/usr/share/common-lisp/source/$_pkgname"
|
"$pkgdir/usr/share/common-lisp/source/$_pkgname"
|
||||||
endsnippet
|
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
|
# vim: tabstop=2 shiftwidth=2 expandtab
|
||||||
|
|
Loading…
Reference in a new issue