Files
Buffteks-Website/venv/lib/python3.12/site-packages/deptry/reporters/base.py
2025-05-08 21:10:14 -05:00

20 lines
406 B
Python

from __future__ import annotations
from abc import ABC, abstractmethod
from dataclasses import dataclass
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from deptry.violations import Violation
@dataclass
class Reporter(ABC):
"""Base class for all violation reporters."""
violations: list[Violation]
@abstractmethod
def report(self) -> None:
raise NotImplementedError()