Skip to content

Feature: API diffing utils & change detection. #75

@tlambert03

Description

@tlambert03

Continuing conversation started here ...

One of the things I'm most interested in using griffe for is detecting API changes. This is one of the main things mentioned in the README Todo, so is clearly a major interest to @pawamoy as well. There's a lot of subtleties to discuss here, so just starting this issue as courtesy/placeholder for this topic.

I've started an experimental repo to play with this here: https://github.com/tlambert03/griffediff ... but would be happy to port that work into this repo later if it's decided that that is the best place for it. (or, alternatively, it could also be an independent repo, but still live in the mkdocstrings org). There's lots of discussion to be had about approach there too.

I'll also mention https://github.com/Carreau/frappuccino. I know that @Carreau there wanted to do something purely static/AST-based (which is what griffe would be doing particularly well here), but eventually went to dynamic inspection due to difficulties in actually being able to detect API changes statically. (for example, a simple decorator can completely change an AST node at runtime... so the actual scope/usefulness of static API detection is definitely an open question)

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions