Skip to content

Commit

Permalink
Merge branch 'develop' into m/core-604/add_or_update_ds
Browse files Browse the repository at this point in the history
  • Loading branch information
cdkini authored Dec 17, 2024
2 parents f4e684b + 46c8569 commit 6e22ddc
Show file tree
Hide file tree
Showing 12 changed files with 907 additions and 832 deletions.
115 changes: 0 additions & 115 deletions assets/scripts/gx_cloud/experimental/onboarding_script.py

This file was deleted.

2 changes: 2 additions & 0 deletions docs/sphinx_api_docs_source/include_exclude_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,5 @@ def __post_init__(self):
raise ValueError( # noqa: TRY003
"You must provide at least a filepath or filepath and name."
)
if self.filepath and not self.filepath.exists():
raise FileNotFoundError(f"File {self.filepath} does not exist.") # noqa: TRY003
20 changes: 20 additions & 0 deletions docs/sphinx_api_docs_source/printable_definition.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
from __future__ import annotations

import pathlib
from dataclasses import dataclass


@dataclass(frozen=True)
class PrintableDefinition:
file: pathlib.Path
name: str

def __post_init__(self):
if not self.file.exists():
raise FileNotFoundError(f"File {self.file} does not exist.") # noqa: TRY003

def __str__(self) -> str: # type: ignore[explicit-override]
return f"File: {self.file} Name: {self.name}"

def __lt__(self, other) -> bool:
return str(self) < str(other)
Loading

0 comments on commit 6e22ddc

Please sign in to comment.