We could probably check for several things in a noxfile. Such as:
- Provide a PEP 723 block with at least nox
- Provide a shebang line
- Provide a
if __name__ == "__main__" block / call nox.main()
And
- Set
nox.needs_version
- Set
nox.options.default_venv_backend (to "uv|virtualenv" usually)
- Use
default= instead of setting the session list
We could probably check for several things in a noxfile. Such as:
if __name__ == "__main__"block / callnox.main()And
nox.needs_versionnox.options.default_venv_backend(to"uv|virtualenv"usually)default=instead of setting the session list