tlambert03 / griffediff

API comparison and breaking-change detection using griffe.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

griffediff

License PyPI Python Version CI codecov

API comparison and breaking-change detection using griffe.

ARCHIVED The functionality in this package is being added to griffe core

See also: https://github.com/Carreau/frappuccino


Examples of allowed non-breaking API changes:

def add_optional_param(a):
def add_optional_param(a, c=2):

def change_keywordonly_position(a, *, b=1, c=2):
def change_keywordonly_position(a, *, c=2, b=1):

def change_return_type() -> Sequence:
def change_return_type() -> list:

Examples of breaking API changes detected

def remove_param(a, b): #
def remove_param(a):

def change_param_name(a, b):
def change_param_name(a, c):

def change_param_default(a, b=1):
def change_param_default(a, b=2):

def add_required_param(a):
def add_required_param(a, b):

def change_kwarg_to_positional(a, b=1):
def change_kwarg_to_positional(a, b):

def change_position_of_positional(a, b):
def change_position_of_positional(b, a):

def change_keyword_position(a, b=1, c=2):
def change_keyword_position(a, c=2, b=1):

def change_pos_to_keyword_only(a, b=1):
def change_pos_to_keyword_only(a, *, b=1):

def change_return_type_incompatible() -> list:
def change_return_type_incompatible() -> Sequence:

def removed_public_function():
def _removed_public_function():

About

API comparison and breaking-change detection using griffe.

License:Other


Languages

Language:Python 100.0%