Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
Fix type checking + lint
Thiago Morettoc8c0a89dc644
diff --git a/src/crewai/cli/deploy/utils.py b/src/crewai/cli/deploy/utils.pyindex e55309cfa..89bb89536 100644--- a/src/crewai/cli/deploy/utils.py+++ b/src/crewai/cli/deploy/utils.py@@ -39,7 +39,7 @@ def parse_toml(content):return simple_toml_parser(content)-def get_git_remote_url() -> str:+def get_git_remote_url() -> str | None:"""Get the Git repository's remote URL."""try:# Run the git remote -v command@@ -63,6 +63,8 @@ def get_git_remote_url() -> str:except FileNotFoundError:console.print("Git command not found. Make sure Git is installed and in your PATH.", style="bold red")+ return None+def get_project_name(pyproject_path: str = "pyproject.toml"):"""Get the project name from the pyproject.toml file."""@@ -83,7 +85,7 @@ def get_project_name(pyproject_path: str = "pyproject.toml"):print(f"Error: {pyproject_path} not found.")except KeyError:print(f"Error: {pyproject_path} is not a valid pyproject.toml file.")- except tomllib.TOMLDecodeError if sys.version_info >= (3, 11) else Exception as e:+ except tomllib.TOMLDecodeError if sys.version_info >= (3, 11) else Exception as e: # type: ignoreprint(f"Error: {pyproject_path} is not a valid TOML file."if sys.version_info >= (3, 11)