deffind_project_root(marker:str="pyproject.toml")->Path:"""Find the project root by searching upwards for a marker."""current_path=Path(__file__).resolve()whilecurrent_path!=current_path.parent:if(current_path/marker).exists():returncurrent_pathcurrent_path=current_path.parentreturnPath(__file__).parent.resolve()