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

16 lines
454 B
Python

from __future__ import annotations
from dataclasses import dataclass
from typing import ClassVar
from deptry.violations.base import Violation
@dataclass
class DEP001MissingDependencyViolation(Violation):
error_code: ClassVar[str] = "DEP001"
error_template: ClassVar[str] = "'{name}' imported but missing from the dependency definitions"
def get_error_message(self) -> str:
return self.error_template.format(name=self.issue.name)