top | item 43919190

(no title)

andenacitelli | 9 months ago

I’ve had this same thought. Ruff doesn’t support extensions / custom lint rules that I’m aware of, so maybe don’t get your hopes up.

discuss

order

the_mitsuhiko|9 months ago

Not supporting plugins for a type checker to me is a plus. It’s quite frustrating that some Python projects only typecheck if you have plugins. That is a major source of frustration.

zem|9 months ago

python packages that do a lot of metaprot can only be properly type checked if you replicate that metaprogramming at the type level. e.g. if dataclasses were not part of the standard library they would need a plug-in to be handled correctly.

Redoubts|9 months ago

I mean that kind of code exists; things like attrs are too magical otherwise