docs: update black example

This commit is contained in:
Daylin Morgan 2023-06-05 16:28:50 -05:00
parent 984bc20ceb
commit 135f2bf2e8
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python
# AUTOGENERATED by viv (v23.5a5-9-g33e2ff5-dev)
# AUTOGENERATED by viv (v23.5a5-19-g93fd53e-dev)
# see `python3 <(curl -fsSL viv.dayl.in/viv.py) --help`
@ -37,8 +37,8 @@ def _viv_use(*pkgs, track_exe=False, name=""):
meta.update(dict(accessed=t, files=sorted({*meta["files"], runner})))
(env / "vivmeta.json").write_text(json.dumps(meta))
sys.path = [p for p in sys.path if not p != site.USER_SITE]
site.addsitedir(str(*(env / "lib").glob("py*/si*")))
site.addsitedir(sitepkgs := str(*(env / "lib").glob("py*/si*")))
sys.path = [p for p in (sitepkgs, *sys.path) if p != site.USER_SITE]
return env
@ -53,5 +53,7 @@ if __name__ == "__main__":
"packaging==23.1", # noqa
"pathspec==0.11.1",
"platformdirs==3.5.1",
"tomli==2.0.1",
"typing_extensions==4.6.3",
) # noqa
sys.exit(subprocess.run([vivenv / "bin" / "black", *sys.argv[1:]]).returncode)