Skip to content

Commit

Permalink
temp fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanpulver committed Sep 16, 2024
1 parent 333421d commit 958a39e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions safety/scan/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@
class ScannableEcosystems(Enum):
"""Enum representing scannable ecosystems."""
PYTHON = Ecosystem.PYTHON.value
PYPROJECT_TOML = Ecosystem.PYPROJECT_TOML.value


def process_report(
obj: Any, console: Console, report: ReportModel, output: str,
Expand Down
6 changes: 3 additions & 3 deletions safety/scan/finder/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def can_handle(self, root: str, file_name: str, include_files: Dict[FileType, Li
return None

@abstractmethod
def download_required_assets(self, session) -> Dict[str, str]:
def download_required_assets(self, session):
"""
Abstract method to download required assets for handling files. Should be implemented
by subclasses.
Expand Down Expand Up @@ -116,7 +116,7 @@ def download_required_assets(self, session):
class PyProjectTomlHandler(FileHandler):
def __init__(self) -> None:
super().__init__()
self.ecosystem = Ecosystem.PYPROJECT_TOML
self.ecosystem = Ecosystem.PYTHON

def download_required_assets(self, session):
from safety.safety import fetch_database
Expand Down Expand Up @@ -174,5 +174,5 @@ def download_required_assets(self, session) -> None:
ECOSYSTEM_HANDLER_MAPPING = MappingProxyType({
Ecosystem.PYTHON: PythonFileHandler,
Ecosystem.SAFETY_PROJECT: SafetyProjectFileHandler,
Ecosystem.PYPROJECT_TOML: PyProjectTomlHandler,
# Ecosystem.PYPROJECT_TOML: PyProjectTomlHandler,
})

0 comments on commit 958a39e

Please sign in to comment.