JakobGM / patito

A data modelling layer built on top of polars and pydantic
MIT License
323 stars 25 forks source link

Speed up pyright #90

Closed thomasaarholt closed 3 months ago

thomasaarholt commented 3 months ago

We'd accidentally overwritten the default exclude directories for pyright, so it was searching the .venv folder for python files and finding loads. This significantly speeds up operations such as goto-reference!

I also point pyright at the .venv subdirectory, so that pyright automatically recognizes the virtual environment. I'm a bit unsure if that will interfere with others' workflows - poetry by default stores venvs in some other directory.

thomasaarholt commented 3 months ago

Test failure was due to polars 1.1 or 1.2 introducing a difference in the behavior of how structs containing only nulls are handled. Fixing that currently.