#!/usr/bin/env -S uv run --script
# /// script
# dependencies = [
# "requests<3",
# "rich",
# ]
# ///
import requests, rich
# ... script goes here
Usually, when I use uv along with a pyproject.toml, I'll activate the venv before starting neovim, and then my LSP (basedpyright) is aware of the dependencies and it all just works. But with inline dependencies, I'm not sure what the best way to do this is.
I usually end up just manually creating a venv with the dependencies so I can edit inside of it, but then I run the script using the shebang/inline dependencies when I'm done developing it.
And given Jon Udell has written about XSLT before[0], I'm sure this was an intentional decision. Not sure I understand it though.
Sadly it doesn't seem like they're using it anymore.
The less manageable risk is the liver issue. The HLA-B*35:01 gene significantly increases the probability of it happening, and this gene can be screened for in theory. Periodic liver testing might be another way to manage the risk, to catch it before it's symptomatic.
https://youtu.be/sJO0n6kvPRU at around 2:05
One of my favorite scenes, by the way.
They are very good for your neck, though.