fix: Correct spelling of 'synthetic' in changelog and refactor project_root method in Settings class

This commit is contained in:
acano 2026-03-12 16:08:55 +01:00
parent c101a8f8da
commit b163b7cddc
2 changed files with 4 additions and 4 deletions

View File

@ -8,10 +8,10 @@ All notable changes to the **Brunix Assistance Engine** will be documented in th
### Added ### Added
- IMPLEMENTED: - IMPLEMENTED:
- `scripts/pipelines/flows/translate_mbpp.py`: pipeline to generate synthethic dataset from mbpp dataset. - `scripts/pipelines/flows/translate_mbpp.py`: pipeline to generate synthetic dataset from mbpp dataset.
- `scripts/tasks/prompts.py`: module containing prompts for pipelines. - `scripts/tasks/prompts.py`: module containing prompts for pipelines.
- `scripts/tasks/chunk.py`: module containing functions related to chunk management. - `scripts/tasks/chunk.py`: module containing functions related to chunk management.
- `synthethic_datasets`: folder containing generated synthethic datasets. - `synthetic_datasets`: folder containing generated synthetic datasets.
- `src/config.py`: environment variables configuration file. - `src/config.py`: environment variables configuration file.
### Changed ### Changed

View File

@ -33,13 +33,13 @@ class Settings(BaseSettings):
) )
@property @property
def project_root(self) -> Path: def proj_root(self) -> Path:
return Path(__file__).resolve().parents[1] return Path(__file__).resolve().parents[1]
def _resolve_path(self, path: Optional[str]) -> Optional[Path]: def _resolve_path(self, path: Optional[str]) -> Optional[Path]:
if path is None: if path is None:
return None return None
return self.project_root / path return self.proj_root / path
@property @property
def data_path(self) -> Optional[Path]: def data_path(self) -> Optional[Path]: