dotfiles/home/private_bin/executable_generate-vivenvs

12 lines
266 B
Text
Raw Normal View History

2023-06-13 08:51:13 -05:00
#!/usr/bin/env python3
from viv import Env, ViVenv
SPECS = (["black"], ["pre-commit"], ["pdm"])
for spec in SPECS:
vivenv = ViVenv(spec)
if not vivenv.loaded or Env().viv_force:
vivenv.create()
vivenv.install_pkgs()
vivenv.meta.write()