daft-dev / daft

Render probabilistic graphical models using matplotlib
https://docs.daft-pgm.org
MIT License
675 stars 120 forks source link

Add ruff’s pyupgrade to pre-commit #165

Closed nstarman closed 12 months ago

nstarman commented 12 months ago

fixes #164

nstarman commented 12 months ago

There's hundreds more rules to select (https://beta.ruff.rs/docs/). Many are quite useful. My personal preference is not to allow-list a few rules but block-list a few, turning on the rest. As ruff matures and adds more rules this would auto-pick up updates to ruff.

dfm commented 12 months ago

LGTM - thanks!!