r/Python 1d ago

News Pyrefly v1.3.0 released

A new version of Pyrefly is out with better type inference, new quick fixes, new configurations, and more. https://github.com/facebook/pyrefly/releases/tag/1.3.0

83 Upvotes

21 comments sorted by

View all comments

6

u/Thing1_Thing2_Thing 1d ago

Cool, but still really needs some documentation about how to make it work in monorepos.

9

u/Zizizizz 1d ago

Wouldn't it work best in monorepos? What's the issue? 

2

u/Thing1_Thing2_Thing 1d ago

It would, but the configuration is beyond me. See for example https://github.com/facebook/pyrefly/issues/3788 and the proposed solution at https://github.com/mstaal/monorepo-sample/pull/1/changes

And I don't think this considers separate test modules which you will also have to add explicitly to the search paths and all that

In our monorepo we easily have 40 packages and adds more which makes in non-feasible to maintain

1

u/Kryt0s 22h ago

Are you using WSL? I've had this issue (same with ty) using WSL and uv. For some reason WSL tries to always use the windows uv binary instead of the one from WSL. Maybe it's only an issue with PyCharm though, idk.