Configure ruff with a barebones pyproject.toml to address the conversion mentioned in #232. I spent the time to do the switch now so I would stop messing up import ordering.
I wasn't sure where to place the pyproject.toml but we have options (including making it a .ruff.toml for now):
The repository root, which would allow us to configure ruff in one spot for both model_signing and slsa_for_models. The tool.ruff section can extend other pyproject.tomls, so if we had a pyproject.toml for each project they could inherit ruff settings.
The model_signing directory (which is where it currently is in this PR).
For reviewers, I recommend going commit by commit, I tried to organize them in reviewable chunks.
@mihaimaruseac does this address the comments you left in #232?
Summary
Configure
ruff
with a barebonespyproject.toml
to address the conversion mentioned in #232. I spent the time to do the switch now so I would stop messing up import ordering.In terms of the rules selected, https://github.com/sigstore/model-transparency/commit/7f85551a332806989291ab144a0c2264c2a72f82 talks about the motivation for picking them, but I'm happy to adjust as needed, or include the reasons in the config file itself.
I wasn't sure where to place the
pyproject.toml
but we have options (including making it a.ruff.toml
for now):ruff
in one spot for bothmodel_signing
andslsa_for_models
. Thetool.ruff
section can extend otherpyproject.toml
s, so if we had apyproject.toml
for each project they could inheritruff
settings.model_signing
directory (which is where it currently is in this PR).For reviewers, I recommend going commit by commit, I tried to organize them in reviewable chunks.
@mihaimaruseac does this address the comments you left in #232?
Release Note
NONE
Documentation
NONE