coverage_plot/importance_interface.py
import abc
class Importance(abc.ABC):
"""
Generic interface for importance metrics.
Subclasses of Importance implement a method that takes the filename, and return
an importance score for it.
"""
@abc.abstractmethod
def get_importance(self, filename: str) -> int:
"""
Return an importance score for a file.
"""