mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-12-22 02:30:44 -06:00
docs: update black example
This commit is contained in:
parent
984bc20ceb
commit
135f2bf2e8
1 changed files with 5 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env python
|
#!/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`
|
# 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})))
|
meta.update(dict(accessed=t, files=sorted({*meta["files"], runner})))
|
||||||
|
|
||||||
(env / "vivmeta.json").write_text(json.dumps(meta))
|
(env / "vivmeta.json").write_text(json.dumps(meta))
|
||||||
sys.path = [p for p in sys.path if not p != site.USER_SITE]
|
site.addsitedir(sitepkgs := str(*(env / "lib").glob("py*/si*")))
|
||||||
site.addsitedir(str(*(env / "lib").glob("py*/si*")))
|
sys.path = [p for p in (sitepkgs, *sys.path) if p != site.USER_SITE]
|
||||||
return env
|
return env
|
||||||
|
|
||||||
|
|
||||||
|
@ -53,5 +53,7 @@ if __name__ == "__main__":
|
||||||
"packaging==23.1", # noqa
|
"packaging==23.1", # noqa
|
||||||
"pathspec==0.11.1",
|
"pathspec==0.11.1",
|
||||||
"platformdirs==3.5.1",
|
"platformdirs==3.5.1",
|
||||||
|
"tomli==2.0.1",
|
||||||
|
"typing_extensions==4.6.3",
|
||||||
) # noqa
|
) # noqa
|
||||||
sys.exit(subprocess.run([vivenv / "bin" / "black", *sys.argv[1:]]).returncode)
|
sys.exit(subprocess.run([vivenv / "bin" / "black", *sys.argv[1:]]).returncode)
|
||||||
|
|
Loading…
Reference in a new issue