Sigurd Ljødal

Results 65 comments of Sigurd Ljødal

Ah, then I'd misunderstood how ruff works. I naively assumed it built up a cst of the source code and then traversed that. As a developer that's at least an...

Hmm, does it have to be lazy? My (new) understanding is that ruff builds up an ast of the file being checked, if that's correct it would be great to...

I think short codes would be useful, even though that'll quickly lead to very long lines. I think I'd prefer that though. Eg with mypy I tend to write `#...

I'd be very interested to work on this. We have multiple large Django projects at work and the startup times of our projects makes it quite painful to work with...

Hmm, okay, so looking around the code is seems like the django runtime is used for basically two things: 1) models and related metadata and 2) settings. I believe it...

I was curious about what it would take to set up the models without the runtime information, so I've spent a few hours today playing around with setting up a...

> Nice experimentation! > > > [...] since there's no way of telling what related managers exist just by looking at a single model definition. [...] > > I'm not...

I think a very good first step would be to do a refactoring of how the runtime logic is used. Right now we directly access e.g. the app registry when...

Another option is to ask for additional hooks from mypy, either a way to defer in the "get additional deps" callback (so we can wait until the settings module has...

> > [...] some dataclasses then we can later look into populating that state from reading the source rather than doing it at runtime. [...] > > We might perhaps...