≈ the.bay.news

Feedback wanted on pyorder, a Python definition-ordering linter

Discussions on Python.org
Feedback wanted on pyorder, a Python definition-ordering linter
Hi everyone, I’ve been working on pyorder, a linter that orders function and class definitions in Python files. It uses the AST to find definitions and applies rules such as callers before callees, functions before classes at module level, and constructors and special methods earlier in class bodies. It can show a diff or reorder files with pyorder check --fix. I’d appreciate feedback, especially on a few design questions: Do these ordering rules seem useful and predictable? How should calle...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.