sigstore / model-transparency

Supply chain security for ML
Apache License 2.0
105 stars 28 forks source link

enable pyupgrade (UP) linter #298

Closed spencerschrock closed 1 month ago

spencerschrock commented 1 month ago

Summary

The main rule I'm interested in is UP035, which helps prevent using deprecated imports. Specifically some of the typing imports which now live in collections.abc.

I disabled two rules (UP012, UP015) which consider some optional args as unnecessary, as there were many occurrences and it seemed opinionated. But happy to re-add if desired.

Release Note

NONE

Documentation

NONE